|
@@ -4,19 +4,25 @@ server:
|
|
|
context-path: /welampiot
|
|
|
|
|
|
spring:
|
|
|
+ # 指定哪个文件,比如dev.yml local.yml
|
|
|
+ # profiles:
|
|
|
+ # active: @spring.active@
|
|
|
application:
|
|
|
name: welampiot
|
|
|
datasource:
|
|
|
- driver-class-name: com.mysql.jdbc.Driver
|
|
|
- url: jdbc:mysql://139.196.213.241:3306/welampiot?characterEncoding=utf-8&useSSL=false
|
|
|
- username: welampiot
|
|
|
- password: welampiot@2023
|
|
|
- initialSize: 5
|
|
|
- minIdle: 5
|
|
|
- maxActive: 100
|
|
|
- maxWait: 60000
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
#数据库连接中数据源类型
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ druid:
|
|
|
+ url: jdbc:mysql://139.196.213.241:3306/welampiot?characterEncoding=utf-8&useSSL=false
|
|
|
+ username: welampiot
|
|
|
+ password: XPDejO2KMJ5WZB5a8G3oOIJPkibY1v3Vm9PDI2C+8DQM15FGGQUCGlLGAxiMbBMphX5HNNXy6iAbbZC9GkKzWw==
|
|
|
+ # encrypt config
|
|
|
+ filters: config
|
|
|
+ connect-properties:
|
|
|
+ config.decrypt: true
|
|
|
+ config.decrypt.key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAI5wh9Y/+kW7LK1jgUTygp2wk5uVUucBheqNDeKPAKH/orx1r1GF4mcFgfaBYO/hyVJC7Gk3xf6ypKd2MCrFRXsCAwEAAQ==
|
|
|
+ # config.decrypt.key: ${spring.datasource.druid.publickey}
|
|
|
# jackson:
|
|
|
# serialization:
|
|
|
# write-null-map-values: true
|
|
@@ -26,11 +32,13 @@ mybatis:
|
|
|
mapper-locations: classpath:/mapper/*.xml
|
|
|
check-config-location: true
|
|
|
type-aliases-package: com.welampiot
|
|
|
-debug: false
|
|
|
+ configuration:
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+debug: true
|
|
|
|
|
|
logging:
|
|
|
file:
|
|
|
path: /logs/cis
|
|
|
level:
|
|
|
- root: info
|
|
|
+ root: info
|
|
|
config: classpath:logback.xml
|