43 lines
875 B
Java
43 lines
875 B
Java
package com.muyu.resource.redis;
|
||
|
||
import com.muyu.resource.mapper.ResourceMapper;
|
||
import com.muyu.common.redis.service.RedisService;
|
||
import org.springframework.beans.factory.annotation.Autowired;
|
||
import org.springframework.boot.ApplicationArguments;
|
||
import org.springframework.boot.ApplicationRunner;
|
||
import org.springframework.stereotype.Component;
|
||
|
||
/**
|
||
* @Author:zhangchengzhi
|
||
* @Package:com.muyu.cloud.resource.redis
|
||
* @Project:cloud-resource
|
||
* @name:
|
||
* @Date:2024/8/10 11:25
|
||
*/
|
||
@Component
|
||
public class DataSynchronization implements ApplicationRunner {
|
||
|
||
@Autowired
|
||
private RedisService redisService;
|
||
|
||
@Autowired
|
||
private ResourceMapper resourceMapper;
|
||
|
||
/**
|
||
* 数据库同步到redis
|
||
* @param args
|
||
* @throws Exception
|
||
*/
|
||
@Override
|
||
public void run(ApplicationArguments args) throws Exception {
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
}
|
||
}
|