@@ -0,0 +1,37 @@
+spring:
+ datasource:
+ dynamic:
+ druid:
+ initial-size: 2
+ max-active: 20
+ min-idle: 2
+ primary: master
+ master:
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://10.10.10.230:3306/freight?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
+ username: freight
+ password: freight
+ data:
+ redis:
+ host: 10.10.10.230
+ password: test
+ port: 6379
+ database: 13
+ lettuce:
+ pool:
+ enabled: true
+ max-active: 8
+ max-idle: 16
+ min-idle: 1
+
+# 日志级别
+logging:
+ level:
+ root: debug
+# mybatis-plus 打印sql
+mybatis-plus:
+ configuration:
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
@@ -5,7 +5,7 @@ spring:
application:
name: Freight-Settlement
profiles:
- active: test
+ active: dev
jackson:
date-format: yyyy-MM-dd HH:mm:ss
locale: zh