| | |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.ApplicationArguments; |
| | | import org.springframework.boot.ApplicationRunner; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | //protected final Log logger = LogFactory.getLog(this.getClass()); |
| | | protected final Logger logger = LoggerFactory.getLogger(this.getClass()); |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private CommonService commonService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private DictRecordService dictRecordService; |
| | | |
| | | @Resource |
| | |
| | | CacheUtils.init(); |
| | | |
| | | boolean tableExists = commonService.checkTableExists("dict_record"); |
| | | if (!tableExists) { |
| | | dictRecordService.createDictRecoTable(); |
| | | } |
| | | if (!tableExists) dictRecordService.createDictRecoTable(); |
| | | |
| | | // 读取dat数据 |
| | | commonService.readDatData(); |
| | | |