| | |
| | | package com.zt.life; |
| | | |
| | | import com.zt.life.modules.mainPart.basicInfo.service.ParamDataService; |
| | | import com.zt.life.modules.mainPart.basicInfo.service.XhProductModelService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.boot.ApplicationRunner; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | @Component |
| | | public class StartupHandler implements ApplicationRunner { |
| | | |
| | | @Autowired |
| | | XhProductModelService xhProductModelService; |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | // 刷新缓存 |
| | | xhProductModelService.refreshCache(); |
| | | } |
| | | } |