| | |
| | | server: |
| | | port: 8014 |
| | | port: 8027 |
| | | |
| | | spring: |
| | | jackson: |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | datasource: |
| | | url: jdbc:mysql://113.250.189.120:23366/water_detective?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowMultiQueries=true |
| | | username: lunhan |
| | | password: lunhan123 |
| | | dynamic: |
| | | primary: master #设置默认的数据源或者数据源组,默认值即为 master |
| | | strict: false # 设置严格模式,当数据源找不到时,是否抛出异常,默认为false不抛出 |
| | | datasource: |
| | | master: # 主库 |
| | | #type: com.alibaba.druid.pool.DruidDataSource |
| | | driver-class-name: org.postgresql.Driver # 3.2.0开始支持SPI可省略此配置 |
| | | url: jdbc:postgresql://113.250.189.120:57654/test_db2 |
| | | username: lunhan |
| | | password: lunhan.20240330 |
| | | test_db1: # 其他库 |
| | | #type: com.alibaba.druid.pool.DruidDataSource |
| | | driver-class-name: org.postgresql.Driver |
| | | url: jdbc:postgresql://113.250.189.120:57654/test_db1 |
| | | username: lunhan |
| | | password: lunhan.20240330 |
| | | druid: |
| | | initial-size: 4 #连接池初始化大小 |
| | | min-idle: 10 #最小空闲连接数 |
| | |
| | | path: ./logs |
| | | level: |
| | | root: info |
| | | com.lunhan.xxx: info |
| | | com.nanjing.water: info |
| | | |
| | | file: |
| | | uploadBasicPath: ./logs/upload/ |
| | | fileBasicUrl: http://localhost/file |
| | | disturbStr: com.lunhan.xxx |
| | | |
| | | jdbc-set: |
| | | sql-log: true |
| | | # mybatis-plus 配置: |
| | | mybatis-plus: |
| | | configuration: |
| | | ### 开启打印sql配置 |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |