| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- server:
- port: 9560
- netty:
- connection-timeout: 18000000
- spring:
- application:
- name: tld-consumer-9560
- profiles:
- active: dev
- datasource:
- dynamic:
- primary: master
- strict: true
- datasource:
- # 主库数据源
- master:
- username: root
- password: "#09SilverB"
- url: jdbc:mysql://8.142.144.205:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
- driver-class-name: com.mysql.cj.jdbc.Driver
- # 从数据源
- # slave:
- # # 从数据源开关/默认关闭
- # enabled: true
- # url: jdbc:mysql://10.2.111.92:3306/okr?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
- # username: root
- # password: "#09SilverB"
- # sqlserver
- # ds2:
- # username: sa
- # password: "#09SilverB"
- # url: jdbc:sqlserver://116.62.173.33:1433;DatabaseName=tuya
- # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
- servlet:
- multipart:
- enabled: true
- max-file-size: 100MB
- max-request-size: 100MB
- mvc:
- async:
- request-timeout: 20000
- redis:
- host: 8.142.144.205
- port: 6379
- password: '#09SilverB'
- jedis:
- pool:
- max-active: 0
- task:
- scheduling:
- pool:
- size: 8 #配置Scheduled定时任务为多线程 否则默认为单线程同一时间段不执行
- logging:
- level:
- com:
- alibaba:
- nacos:
- client:
- naming: error
- knife4j:
- enable: true
- basic:
- enable: true
- username: root
- password: root
- # mybatis-plus相关配置
- mybatis-plus:
- # xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
- mapper-locations: classpath:mapper/*.xml
- # 以下配置均有默认值,可以不设置
- global-config:
- db-config:
- #主键类型 AUTO:"数据库ID自增" INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
- id-type: auto
- #字段策略 IGNORED:"忽略判断" NOT_NULL:"非 NULL 判断") NOT_EMPTY:"非空判断"
- field-strategy: NOT_EMPTY
- #数据库类型
- db-type: MYSQL
- configuration:
- # 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射
- map-underscore-to-camel-case: true
- # 如果查询结果中包含空值的列,则 MyBatis 在映射的时候,不会映射这个字段
- call-setters-on-nulls: true
- # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- #分页插件
- pagehelper:
- auto-runtime-dialect: true
- close-conn: true
- reasonable: false
|