2112A-cloud-resource/cloud-resource-server/src/main/java/com/muyu/resource/redis/DataSynchronization.java

43 lines
875 B
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.resource.redis
* @Projectcloud-resource
* @name
* @Date2024/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 {
}
}