|
@@ -26,46 +26,27 @@ mybatis-flex:
|
|
|
# 数据源-1
|
|
|
ds1:
|
|
|
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
|
|
|
- # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
|
|
|
type: ${spring.datasource.type}
|
|
|
- # mysql数据库
|
|
|
- # driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
- # url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
|
- # username: root
|
|
|
- # password: Root@369
|
|
|
#postgresql数据库
|
|
|
driver-class-name: org.postgresql.Driver
|
|
|
- url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
-# url: jdbc:postgresql://110.41.34.83:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
+# url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
+ url: jdbc:postgresql://110.41.34.83:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
username: postgres
|
|
|
password: P3x0LG8jzyHRX59l
|
|
|
-#psql -h 127.0.0.1 -p 5432 -U postgres
|
|
|
-# # 数据源-2
|
|
|
-# ds2:
|
|
|
-# # 指定为HikariDataSource
|
|
|
-# type: ${spring.datasource.type}
|
|
|
-# # mysql数据库
|
|
|
-# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
-# url: jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
|
|
|
-# username: root
|
|
|
-# password: Root@369
|
|
|
-# #postgresql数据库
|
|
|
-## driver-class-name: org.postgresql.Driver
|
|
|
-## url: jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
|
|
-## username: postgres
|
|
|
-## password: postgres@369
|
|
|
|
|
|
# redis 单机配置(单机与集群只能开启一个另一个需要注释掉)
|
|
|
spring.data:
|
|
|
redis:
|
|
|
# 地址
|
|
|
- host: localhost
|
|
|
+ host: 110.41.34.83
|
|
|
+# host: localhost
|
|
|
# 端口,默认为6379
|
|
|
port: 6379
|
|
|
# 数据库索引
|
|
|
database: 0
|
|
|
# 密码(如没有密码请注释掉)
|
|
|
- password: CWwYsGjafmv8Sr7g
|
|
|
+ password: Z;G4AS:Vor'YF#p?
|
|
|
+# password: CWwYsGjafmv8Sr7g
|
|
|
# 连接超时时间
|
|
|
timeout: 10s
|
|
|
# 是否开启ssl
|