application-dev.yml 1.9 KB
server:
  port: 8150
  tomcat:
    threads:
      max: 1000
      min-spare: 30
    uri-encoding: UTF-8


spring:
  application:
    name: crp-operation
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://192.168.1.41:3306/crp_cloud?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=GMT%2B8
    username: root
    password: root
    driver-class-name: com.mysql.cj.jdbc.Driver
    druid:
      ##配置初始化大小、最小、最大
      initial-size: 5
      max-active: 100
      min-idle: 5
      #配置获取连接等待超时的时间
      max-wait: 60000
      ##打开PSCache,并且指定每个连接上PSCache的大小
      pool-prepared-statements: true
      max-pool-prepared-statement-per-connection-size: 20
      validation-query: SELECT 1 FROM DUAL
      validation-query-timeout: 60000
      ##这里建议配置为TRUE,防止取到的连接不可用
      test-on-borrow: true
      test-on-return: false
      test-while-idle: true
      ##配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 100000

  jackson:
    date-format: yyy-MM-dd HH:mm:ss
    time-zone: GMT+8
  banner:
    charset: UTF-8
    location: classpath:banner.txt
  servlet:
    multipart:
      location: /opt/upload/tmp
      max-file-size: 10MB
      max-request-size: 100MB

mybatis-plus:
  mapper-locations: classpath*:/mapper/*Mapper.xml
  typeAliasesPackage: com.wondertek.entity #开启类型别名,降低冗余的全限定类名书写
  configuration:
    mapUnderscoreToCamelCase: true  #开启自动驼峰命名规则(camel case)映射
#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 配置sql打印日志
  global-config:
    db-config:
      logic-not-delete-value: 1
      logic-delete-value: 0


crp:
  log:
    open_console: true