主方法实现以下接口:
implements org.springframework.boot.CommandLineRunner
重写run
@Override
public void run(String... args) throws Exception {
MainStartUtil.cleanCache();//自己的代码
}
主方法实现以下接口:
implements org.springframework.boot.CommandLineRunner
重写run
@Override
public void run(String... args) throws Exception {
MainStartUtil.cleanCache();//自己的代码
}