| | |
| | | package com.example.scheudleds; |
| | | |
| | | import com.example.utils.DictionaryUtil; |
| | | import com.example.utils.DictionaryUtilNew; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | public class DictSync { |
| | | @Autowired |
| | | private DictionaryUtil dictionaryUtil; |
| | | @Autowired |
| | | private DictionaryUtilNew dictionaryUtilNew; |
| | | |
| | | /** |
| | | * 字典同步 |
| | |
| | | fileWriter.write(""); |
| | | fileWriter.close(); |
| | | } catch (IOException ignored) {} |
| | | try { |
| | | dictionaryUtil.exec1(); |
| | | } catch (IOException e) { |
| | | log.error("定时任务异常"); |
| | | e.printStackTrace(); |
| | | } |
| | | // try { |
| | | // dictionaryUtil.exec1(); |
| | | // } catch (IOException e) { |
| | | // log.error("定时任务异常"); |
| | | // e.printStackTrace(); |
| | | // } |
| | | dictionaryUtilNew.exec1(); |
| | | } |
| | | } |