|
@@ -0,0 +1,49 @@
|
|
|
+server:
|
|
|
+ port: 8081
|
|
|
+file:
|
|
|
+ path: /home/upload/chuanyi/
|
|
|
+
|
|
|
+spring:
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ max-file-size: 100MB
|
|
|
+ max-request-size: 500MB
|
|
|
+ datasource:
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ url: jdbc:mysql://localhost:3306/in_data_db?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
|
|
|
+ username: root
|
|
|
+ password: root
|
|
|
+ hikari:
|
|
|
+ # 设置是否自动提交事务,默认为true
|
|
|
+ auto-commit: true
|
|
|
+ # 设置获取数据库连接的超时时间,默认为30秒,单位是秒
|
|
|
+ connection-timeout: 30000
|
|
|
+ # 设置连接在连接池中保持空闲的最长时间,默认为10分钟,单位是秒
|
|
|
+ idle-timeout: 30000
|
|
|
+ # 设置连接在连接池中允许存在的最长时间,默认为30分钟,单位是秒
|
|
|
+ max-lifetime: 1800000
|
|
|
+ # 设置连接池中允许的最大连接数,默认为10
|
|
|
+ maximum-pool-size: 100
|
|
|
+ # 设置连接池中保持的最小空闲连接数,默认为10
|
|
|
+ minimum-idle: 10
|
|
|
+ resources:
|
|
|
+ static-locations: classpath:/static/,,file:${file.path},file:${file.location}
|
|
|
+ redis:
|
|
|
+ database: 0
|
|
|
+ host: 127.0.0.1
|
|
|
+ port: 6379
|
|
|
+ # password: 123456
|
|
|
+ jedis:
|
|
|
+ pool:
|
|
|
+ max-active: 50
|
|
|
+ max-idle: 20
|
|
|
+ min-idle: 5
|
|
|
+ # max-wait: 5
|
|
|
+
|
|
|
+mybatis:
|
|
|
+ configuration:
|
|
|
+ #开启sql日志文件
|
|
|
+ log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+#logging:
|
|
|
+# level:
|
|
|
+# root: error
|