zr-codegen-develop.yml 2.23 KB
server:
  port: 8005
mybatis-plus:
  mapper-locations:
    - classpath*:mapper/**/*Mapper.xml
  type-aliases-package: com.chinagas.modules.codegen.entity
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    log-prefix: SQL
spring:
  redis:
    host: 172.17.56.37
    port: 6379
    #password: gas*123456
    database: 0
    timeout: 30000
  datasource:
    url: "jdbc:mysql://124.71.131.246:13307/market_charge?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true"
    username: root
    password: Carbon@2024
    druid:
      driverClassName: com.mysql.cj.jdbc.Driver
      #初始化时建立的连接数
      initialSize: 1
      #最小连接池数量
      minIdle: 1
      #最大连接池数
      maxActive: 20
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      timeBetweenEvictionRunsMillis: 60000
      # 配置一个连接在池中最小生存的时间,单位是毫秒
      minEvictableIdleTimeMillis: 300000
      # 配置一个连接在池中最大生存的时间,单位是毫秒
      maxEvictableIdleTimeMillis: 900000
      # 配置检测连接是否有效
      validationQuery: SELECT 1 FROM DUAL
      testWhileIdle: true
      testOnBorrow: false
      testOnReturn: false
      webStatFilter:
        enabled: true
      statViewServlet:
        enabled: true
        # 设置白名单,不填则允许所有访问
        allow:
        url-pattern: /druid/*
        # 控制台管理用户名和密码
        #login-username: root
        #login-password: 7614
      filter:
        stat:
          enabled: true
          # 慢SQL记录
          log-slow-sql: true
          slow-sql-millis: 1000
          merge-sql: true
        #防御sql注入
        wall:
          config:
            multi-statement-allow: true

# 代码生成
codegen: 
  # 作者
  author: lidwd
  # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  packageName: com.chinagas.modules.zjwjsb
  # 自动去除表前缀,默认是false
  autoRemovePre: true
  # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
  tablePrefix: cc_