| | |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 |
| | | # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: root |
| | | # 从库数据源 |
| | |
| | | lazy: true |
| | | type: ${spring.datasource.type} |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true |
| | | url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true |
| | | username: |
| | | password: |
| | | # oracle: |
| | |
| | | # url: jdbc:oracle:thin:@//localhost:1521/XE |
| | | # username: ROOT |
| | | # password: root |
| | | # hikari: |
| | | # connectionTestQuery: SELECT 1 FROM DUAL |
| | | # postgres: |
| | | # type: ${spring.datasource.type} |
| | | # driverClassName: org.postgresql.Driver |
| | |
| | | idleTimeout: 600000 |
| | | # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟 |
| | | maxLifetime: 1800000 |
| | | # 连接测试query(配置检测连接是否有效) |
| | | connectionTestQuery: SELECT 1 |
| | | # 多久检查一次连接的活性 |
| | | keepaliveTime: 30000 |
| | | |
| | |
| | | # 连接超时时间 |
| | | timeout: 10s |
| | | # 是否开启ssl |
| | | ssl: false |
| | | ssl.enabled: false |
| | | |
| | | redisson: |
| | | # redis key前缀 |
| | |
| | | client-id: 10**********6 |
| | | client-secret: 1f7d08**********5b7**********29e |
| | | redirect-uri: ${justauth.address}/social-callback?source=oschina |
| | | alipay: |
| | | alipay_wallet: |
| | | client-id: 10**********6 |
| | | client-secret: 1f7d08**********5b7**********29e |
| | | redirect-uri: ${justauth.address}/social-callback?source=alipay |
| | | redirect-uri: ${justauth.address}/social-callback?source=alipay_wallet |
| | | alipay-public-key: MIIB**************DAQAB |
| | | wechat_open: |
| | | client-id: 10**********6 |