sdf

 

 

 

 

[zetatech@zetasf1 prod]$ cat common-database-prod.yml
spring:
 datasource:
 platform: mysql
 driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://10.114.176.204:3306/sf_security
 username: root
 password: root
 
 type: com.zaxxer.hikari.HikariDataSource
 hikari:
 maxLifetime: 1765000
 maximumPoolSize: 15
 connection-test-query: select 1

mybatis-plus:
 configuration:
 callSettersOnNulls: true
 log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 mapper-locations: classpath*:mybatis/mapper/*.xml
 type-handlers-package: cn.com.zetatech.cloud.sf.service.enhance.mybatis.plus

pagehelper:
 helper-dialect: mysql
 reasonable: true
 support-methods-arguments: true
 params: countSql
 
zetacloud:
 scheduler: # zetacloud平台定时器数据源属性配置
 datasource:
 driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://10.114.176.204:3306/sf_quartz
 username: root
 password: root
 transaction:
 asInitiator: false # 作为分布式事务的发起者
 asParticipant: false # 作为分布式事务的参与者


 

 

[zetatech@zetasf1 prod]$ cat security-service-prod.yml
# 数据库相关配置
spring:
 datasource:
 #platform: postgres
 #driver-class-name: org.postgresql.Driver
 #url: jdbc:postgresql://localhost:5432/security
 #username: postgres
 #password: postgres

 platform: mysql
 driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://10.114.176.204:3306/sf_security
 username: root
 password: root

 #platform: oracle
 #driver-class-name: oracle.jdbc.driver.OracleDriver
 #url: jdbc:oracle:thin:@192.168.0.247:1521:helowin
 #username: root
 #password: root

 type: com.zaxxer.hikari.HikariDataSource
 hikari:
 maxLifetime: 1765000 #一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),缺省:30分钟,建议设置比数据库超时时长少30秒以上
 maximumPoolSize: 15 #连接池中允许的最大连接数。缺省值:10;推荐的公式:((core_count * 2) +effective_spindle_count)
 #connection-test-query: select 1 from dual # oracle使用此语句
 connection-test-query: select 1

pagehelper:
 #helper-dialect: postgresql
 helper-dialect: mysql
 #helper-dialect: oracle
 reasonable: true
 support-methods-arguments: true
 params: countSql

file:
 download:
 url: http://10.114.176.205/gw/security/download/file # 应用手机APP下载入口

 [zetatech@zetasf1 prod]$ cat security-scheduler-service-prod.yml
spring:
 datasource:
 #platform: postgres
 #driver-class-name: org.postgresql.Driver
 #username: postgres
 #password: postgres

 platform: mysql
 driver-class-name: com.mysql.cj.jdbc.Driver
 url: jdbc:mysql://10.114.176.204:3306/sf_security
 username: root
 password: root

 #platform: oracle
 #username: root
 #password: root

 type: com.zaxxer.hikari.HikariDataSource
 hikari:
 maxLifetime: 1765000 #一个连接的生命时长(毫秒),超时而且没被使用则被释放(retired),缺省:30分钟,建议设置比数据库超时时长少30秒以上
 maximumPoolSize: 15 #连接池中允许的最大连接数。缺省值:10;推荐的公式:((core_count * 2) +effective_spindle_count)
 #connection-test-query: select 1 from dual # oracle使用此语句
 connection-test-query: select 1

pagehelper:
 #helper-dialect: postgresql
 helper-dialect: mysql
 #helper-dialect: oracle
 reasonable: true
 support-methods-arguments: true
 params: countSql

posted on 2022-08-31 09:22  陈林加油!  阅读(220)  评论(0编辑  收藏  举报

导航