diff --git a/conf/db.properties b/conf/db.properties index d72dc20..3760d80 100644 --- a/conf/db.properties +++ b/conf/db.properties @@ -1,7 +1,7 @@ # 数据库服务器配置 type=com.alibaba.druid.pool.DruidDataSource driver-class-name=org.postgresql.Driver -druid.url=jdbc: +druid.url=jdbc:postgresql://47.96.230.225:5432/chmis druid.username=chhong druid.password=76Zj5mr8xsBs druid.initial-size=10 diff --git a/conf/szwh.properties b/conf/szwh.properties new file mode 100644 index 0000000..9811f26 --- /dev/null +++ b/conf/szwh.properties @@ -0,0 +1 @@ +# 配置扫描的包 diff --git a/pom.xml b/pom.xml index b6dd21f..68a61c5 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,34 @@ org.apache.commons commons-lang3 + + junit + junit + test + + + + com.alibaba + fastjson + 1.2.78 + + + + com.alibaba + druid + 1.2.6 + + + + org.apache.httpcomponents + httpclient + 4.5.9 + + + + org.postgresql + postgresql + diff --git a/src/main/java/cn/chjyj/szwh/configure/DruidConfig.java b/src/main/java/cn/chjyj/szwh/configure/DruidConfig.java index 728a9aa..3ae2876 100644 --- a/src/main/java/cn/chjyj/szwh/configure/DruidConfig.java +++ b/src/main/java/cn/chjyj/szwh/configure/DruidConfig.java @@ -1,6 +1,7 @@ package cn.chjyj.szwh.configure; -import cn.chjyj.employee.constant.ChConstant; + +import cn.chjyj.szwh.constant.ChConstant; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/src/main/java/cn/chjyj/szwh/constant/ChConstant.java b/src/main/java/cn/chjyj/szwh/constant/ChConstant.java new file mode 100644 index 0000000..8dd51a7 --- /dev/null +++ b/src/main/java/cn/chjyj/szwh/constant/ChConstant.java @@ -0,0 +1,27 @@ +package cn.chjyj.szwh.constant; + + +import cn.chjyj.szwh.configure.EnvConfig; + +/** + * 系统常量 + */ +public class ChConstant { + //项目运行目录 + public static final String WORK_DIR = EnvConfig.yxDbConf(); + + //数据库链接文件路径 + public static final String DB_CONF = "/conf/db.properties"; + + //分页大小 + public static final int PAGESIZE=12; + /** + * 系统密文 + * 43位字符长度 + */ + public static final String SYS_SECRECT="mQ4jvhc5UAY1HDu87jfR5rkDkVRvKF1ZeaUpuVpBnNG"; + /** + * 系统加密密码 + */ + public static final String SYS_SECRECT_SHORT_WORD="ChhongLtd"; +} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 380f719..2c6603f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,4 +5,6 @@ logging.path=./logs/ # 服务器信息 server.port=9090 # 服务请求上下文 -#server.servlet.context-path=/chapi \ No newline at end of file +#server.servlet.context-path=/chapi + +spring.flyway.script-placeholder-prefix= \ No newline at end of file diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index a6eb443..922890d 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -1,3 +1,5 @@ -============ 深圳文化交易所api接口系统 ========== -================== 2022.06 ================== -================= copyright reseved ========= \ No newline at end of file +${AnsiColor.GREEN} +============ 深圳文化交易所api接口系统 ============ +======== springboot版本:${spring-boot.formatted-version} ======== +================== 2022.06 ==================== +================= copyright reseved =========== \ No newline at end of file diff --git a/szwh.iml b/szwh.iml index 6b0ab12..e9f9e81 100644 --- a/szwh.iml +++ b/szwh.iml @@ -99,5 +99,13 @@ + + + + + + + + \ No newline at end of file