whycxzp
2025-05-29 e8e363ad0347cd1313e3a23cd3f4f2a02733e765
src/main/resources/config/application-prod.yml
@@ -18,25 +18,11 @@
#数据库
spring:
  datasource:
    dynamic:
      primary: master # 默认使用mater库
      strict: false   # 不使用严格模式
      datasource:
        master:
          type: com.alibaba.druid.pool.DruidDataSource
#          driver-class-name: com.mysql.cj.jdbc.Driver
#          url: jdbc:mysql://localhost:3360/db_user?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&rewriteBatchedStatements=true&useSSL=false
#          username: root
#          password: lmx8688139
          driver-class-name: com.highgo.jdbc.Driver
          url: jdbc:highgo://localhost:5866/highgo?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
          username: sysdba
          password: Fg001@HDW
#        db2:
#          type: com.alibaba.druid.pool.DruidDataSource
#          driver-class-name: org.sqlite.JDBC
#          url: jdbc:sqlite:E:\2软件下载包\easydarwin\EasyDarwin-windows-8.2.2-24031216\data\db\EasyDarwin.db?date_string_format=yyyy-MM-dd HH:mm:ss
    #      url: jdbc:sqlite:\2软件下载包\easydarwin\EasyDarwin-windows-8.2.2-24031216\data\db\EasyDarwin.db?date_string_format=yyyy-MM-dd HH:mm:ss
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.highgo.jdbc.Driver
    url: jdbc:highgo://localhost:5866/highgo?rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
    username: sysdba
    password: Fg001@HDWw
    maxIdel: 60
    initialPoolSize: 2
    minPoolSize: 5
@@ -46,7 +32,7 @@
      max-file-size: 200MB
      max-request-size: 200MB
mybatis-plus:
  typeAliasesPackage: com.whyc.pojo,com.whyc.dto
  typeAliasesPackage: com.whyc.pojo
  mapper-locations: classpath:mapper/**/*Mapper.xml
  global-config:
    db-config:
@@ -55,7 +41,7 @@
      #驼峰下划线转换
      table-underline: true
      #数据库大写下划线转换
      capital-mode: true
      capital-mode: false
      #mp2.3+ 全局表前缀 tb_
      table-prefix: tb_
      #刷新mapper 调试神器