测试用户
2023-04-13 43393f2bb11cbf9e6af40077bbc5284660e8a754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.deloitte.system.job;
 
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import java.beans.Introspector;
 
/**
 * @author 谢滨璜
 * @company deloitte
 * @date 2022-04-13
 * @descrition: 定时清理cache
 * */
@Slf4j
@Component
public class CleanCacheTask {
 
    @Scheduled(cron = "0 0 */1 * * ?")
    public void execute() {
        Introspector.flushCaches();
    }
}