diff --git a/.gitignore b/.gitignore index 870b467..e2a9a12 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ log /target/ /log/ -/test/ +#/test/ .DS_Store /src/main/resources/WEB-INF/prop/weaver.properties /lib/classbean diff --git a/src/main/java/aiyh/utils/zwl/common/ToolUtil.java b/src/main/java/aiyh/utils/zwl/common/ToolUtil.java index 8755bdf..26d3d21 100644 --- a/src/main/java/aiyh/utils/zwl/common/ToolUtil.java +++ b/src/main/java/aiyh/utils/zwl/common/ToolUtil.java @@ -5,6 +5,7 @@ import aiyh.utils.zwl.common.logging.LoggerFactory; import weaver.conn.ConnStatementDataSource; import weaver.conn.RecordSet; import weaver.general.BaseBean; +import weaver.general.GCONST; import weaver.general.TimeUtil; import weaver.general.Util; diff --git a/src/test/java/baseTest/BaseTest.java b/src/test/java/baseTest/BaseTest.java index 30f7cc0..2de3a31 100644 --- a/src/test/java/baseTest/BaseTest.java +++ b/src/test/java/baseTest/BaseTest.java @@ -4,6 +4,7 @@ import cn.hutool.core.lang.Console; import org.junit.Before; import org.junit.Test; import weaver.conn.RecordSet; +import weaver.general.GCONST; /** * @author EBU7-dev1-ayh @@ -14,8 +15,9 @@ import weaver.conn.RecordSet; public class BaseTest { @Before public void before() { - weaver.general.GCONST.setServerName("ecology"); - weaver.general.GCONST.setRootPath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/"); + GCONST.setServerName("ecology"); + GCONST.setRootPath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/"); + GCONST.setSystemFilePath("/Users/aoey.oct.22/company/Fan_wei/code/idea/ecology9-project/src/main/resources/file"); } @Test @@ -29,6 +31,7 @@ public class BaseTest { System.out.println("授权到期日期:" + rs.getString(3)); System.out.println("版本:" + rs.getString(4)); Console.log(sql); + System.out.println(GCONST.getSysFilePath()); } } }