Browse Source

调试

master
zhaoyiran 7 months ago
parent
commit
e836142d29
  1. 5
      pom.xml
  2. 13
      src/main/resources/application-dev.yml
  3. 2
      src/main/resources/application-druid.yml

5
pom.xml

@ -99,6 +99,11 @@
<artifactId>reflections</artifactId> <artifactId>reflections</artifactId>
<version>0.9.12</version> <version>0.9.12</version>
</dependency> </dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>12.7.0.jre11-preview</version>
</dependency>
</dependencies> </dependencies>

13
src/main/resources/application-dev.yml

@ -19,10 +19,15 @@ server:
spring: spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:mysql://dev.ccwin-in.com:23113/sfms_hella?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:sqlserver://192.168.0.142:1433;database=ExChangeCenter_Test;encrypt=false
username: learun username: sa
password: Microdoft@2021 password: BPM@#123!@#
# driverClassName: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://dev.ccwin-in.com:23113/sfms_hella?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: learun
# password: Microdoft@2021
# 日志配置 # 日志配置
logging: logging:

2
src/main/resources/application-druid.yml

@ -17,7 +17,7 @@ spring:
# 配置一个连接在池中最大生存的时间,单位是毫秒 # 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000 maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效 # 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1
testWhileIdle: true testWhileIdle: true
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false

Loading…
Cancel
Save