From 3230f30dab0d65456df9e79a9e10afe0b2602ec5 Mon Sep 17 00:00:00 2001 From: zhaowenxuan <chacca165@163.com> Date: 星期四, 19 十二月 2024 15:00:36 +0800 Subject: [PATCH] json字段处理类 --- src/main/java/com/example/scheudleds/DictSync.java | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/scheudleds/DictSync.java b/src/main/java/com/example/scheudleds/DictSync.java index 8666ce9..5de19a9 100644 --- a/src/main/java/com/example/scheudleds/DictSync.java +++ b/src/main/java/com/example/scheudleds/DictSync.java @@ -1,6 +1,7 @@ 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; @@ -18,6 +19,8 @@ public class DictSync { @Autowired private DictionaryUtil dictionaryUtil; + @Autowired + private DictionaryUtilNew dictionaryUtilNew; /** * 瀛楀吀鍚屾 @@ -30,11 +33,12 @@ 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(); } } -- Gitblit v1.8.0