application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. server:
  2. port: 9560
  3. netty:
  4. connection-timeout: 18000000
  5. spring:
  6. application:
  7. name: tld-consumer-9560
  8. profiles:
  9. active: dev
  10. datasource:
  11. dynamic:
  12. primary: master
  13. strict: true
  14. datasource:
  15. # 主库数据源
  16. master:
  17. username: root
  18. password: "#09SilverB"
  19. url: jdbc:mysql://8.142.144.205:3306/tld?useUnicode=true&characterEncoding=utf-8&useSSL=true&rewriteBatchedStatements=true&allowMultiQueries=true
  20. driver-class-name: com.mysql.cj.jdbc.Driver
  21. # 从数据源
  22. # slave:
  23. # # 从数据源开关/默认关闭
  24. # enabled: true
  25. # url: jdbc:mysql://10.2.111.92:3306/okr?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
  26. # username: root
  27. # password: "#09SilverB"
  28. # sqlserver
  29. # ds2:
  30. # username: sa
  31. # password: "#09SilverB"
  32. # url: jdbc:sqlserver://116.62.173.33:1433;DatabaseName=tuya
  33. # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  34. servlet:
  35. multipart:
  36. enabled: true
  37. max-file-size: 100MB
  38. max-request-size: 100MB
  39. mvc:
  40. async:
  41. request-timeout: 20000
  42. redis:
  43. host: 8.142.144.205
  44. port: 6379
  45. password: '#09SilverB'
  46. jedis:
  47. pool:
  48. max-active: 0
  49. task:
  50. scheduling:
  51. pool:
  52. size: 8 #配置Scheduled定时任务为多线程 否则默认为单线程同一时间段不执行
  53. logging:
  54. level:
  55. com:
  56. alibaba:
  57. nacos:
  58. client:
  59. naming: error
  60. knife4j:
  61. enable: true
  62. basic:
  63. enable: true
  64. username: root
  65. password: root
  66. # mybatis-plus相关配置
  67. mybatis-plus:
  68. # xml扫描,多个目录用逗号或者分号分隔(告诉 Mapper 所对应的 XML 文件位置)
  69. mapper-locations: classpath:mapper/*.xml
  70. # 以下配置均有默认值,可以不设置
  71. global-config:
  72. db-config:
  73. #主键类型 AUTO:"数据库ID自增" INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  74. id-type: auto
  75. #字段策略 IGNORED:"忽略判断" NOT_NULL:"非 NULL 判断") NOT_EMPTY:"非空判断"
  76. field-strategy: NOT_EMPTY
  77. #数据库类型
  78. db-type: MYSQL
  79. configuration:
  80. # 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射
  81. map-underscore-to-camel-case: true
  82. # 如果查询结果中包含空值的列,则 MyBatis 在映射的时候,不会映射这个字段
  83. call-setters-on-nulls: true
  84. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  85. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  86. #分页插件
  87. pagehelper:
  88. auto-runtime-dialect: true
  89. close-conn: true
  90. reasonable: false