Browse Source

常规更新

master
xyiege 4 years ago
parent
commit
7409c70c4e
  1. 2
      conf/db.properties
  2. 1
      conf/szwh.properties
  3. 28
      pom.xml
  4. 3
      src/main/java/cn/chjyj/szwh/configure/DruidConfig.java
  5. 27
      src/main/java/cn/chjyj/szwh/constant/ChConstant.java
  6. 4
      src/main/resources/application.properties
  7. 8
      src/main/resources/banner.txt
  8. 8
      szwh.iml

2
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

1
conf/szwh.properties

@ -0,0 +1 @@
# 配置扫描的包

28
pom.xml

@ -68,6 +68,34 @@
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!--fastjosn-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.78</version>
</dependency>
<!--druid-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.2.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.9</version>
</dependency>
<!--postgress-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
</dependencies>
<build>

3
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;

27
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";
}

4
src/main/resources/application.properties

@ -5,4 +5,6 @@ logging.path=./logs/
# 服务器信息
server.port=9090
# 服务请求上下文
#server.servlet.context-path=/chapi
#server.servlet.context-path=/chapi
spring.flyway.script-placeholder-prefix=

8
src/main/resources/banner.txt

@ -1,3 +1,5 @@
============ 深圳文化交易所api接口系统 ==========
================== 2022.06 ==================
================= copyright reseved =========
${AnsiColor.GREEN}
============ 深圳文化交易所api接口系统 ============
======== springboot版本:${spring-boot.formatted-version} ========
================== 2022.06 ====================
================= copyright reseved ===========

8
szwh.iml

@ -99,5 +99,13 @@
<orderEntry type="library" name="Maven: commons-io:commons-io:2.6" level="project" />
<orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.13.2" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:2.2" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.78" level="project" />
<orderEntry type="library" name="Maven: com.alibaba:druid:1.2.6" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.9" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.15" level="project" />
<orderEntry type="library" name="Maven: org.postgresql:postgresql:42.3.5" level="project" />
<orderEntry type="library" scope="RUNTIME" name="Maven: org.checkerframework:checker-qual:3.5.0" level="project" />
</component>
</module>
Loading…
Cancel
Save