|
@@ -0,0 +1,56 @@
|
|
|
+server:
|
|
|
+ port: 8068
|
|
|
+# 通用配置
|
|
|
+pavis:
|
|
|
+ # 需要换成自己开发环境本地的地址
|
|
|
+# profile: /Users/alibct/Downloads/project/pavis/uploadPath
|
|
|
+ profile: F:\pavis\uploadPath
|
|
|
+#minio配置
|
|
|
+minio:
|
|
|
+ #对象存储服务的URL
|
|
|
+ url: http://localhost:9000/
|
|
|
+ #Access key账户
|
|
|
+ accessKey: 2TlzVcrX1jH2oWhz
|
|
|
+ #Secret key密码
|
|
|
+ secretKey: ZfmZgtZO4g1L8iMmVB8DeARCSdyxzI8G
|
|
|
+ bucketName: default
|
|
|
+spring:
|
|
|
+ datasource:
|
|
|
+ dynamic:
|
|
|
+ primary: master #设置默认的数据源或者数据源组,默认值即为master
|
|
|
+ strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
+ datasource:
|
|
|
+ master:
|
|
|
+ url: jdbc:mysql://localhost:3306/slim
|
|
|
+ username: root
|
|
|
+ password: root
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
|
|
|
+ slave_1:
|
|
|
+ url: jdbc:mysql://localhost:3307/slim
|
|
|
+ username: root
|
|
|
+ password: root
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ slave_2:
|
|
|
+ url: jdbc:mysql://localhost:3308/slim
|
|
|
+ username: root
|
|
|
+ password: root
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ # redis 配置
|
|
|
+ redis:
|
|
|
+ # 地址
|
|
|
+ host: localhost
|
|
|
+ # 端口,默认为6379
|
|
|
+ port: 6379
|
|
|
+# feign 配置
|
|
|
+feign:
|
|
|
+ client:
|
|
|
+ config:
|
|
|
+ default:
|
|
|
+ logger-level: full
|
|
|
+ httpclient:
|
|
|
+ # 开启feign对httpclient的支持
|
|
|
+ enabled: true
|
|
|
+ # 最大连接数
|
|
|
+ max-connections: 200
|
|
|
+ # 每个路径的最大连接数
|
|
|
+ max-connections-per-route: 50
|