application-dev.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. mybatis:
  2. refresh:
  3. delay-seconds: 10
  4. enabled: true
  5. sleep-seconds: 20
  6. mybatis-plus:
  7. configuration:
  8. defaultStatementTimeout: 3
  9. lazy-loading-enabled: true
  10. map-underscore-to-camel-case: true
  11. global-config:
  12. db-config:
  13. id-type: auto
  14. mapperRegistryCache: true
  15. mapper-locations: classpath*:mapper/**/*.xml
  16. server:
  17. compression:
  18. enabled: true
  19. mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
  20. spring:
  21. autoconfigure:
  22. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  23. cache:
  24. ehcache:
  25. config: classpath:ehcache.xml
  26. enabled: false
  27. redis:
  28. enabled: true
  29. datasource:
  30. druid:
  31. stat-view-servlet:
  32. enabled: true
  33. login-password: '@dmin1234'
  34. login-username: admin
  35. reset-enable: true
  36. url-pattern: /druid/*
  37. dynamic:
  38. datasource:
  39. master:
  40. password: password
  41. url: jdbc:mysql://172.16.120.165:3306/usky-cloud?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&characterEncoding=utf8&allowMultiQueries=true
  42. username: root
  43. druid:
  44. initial-size: 5
  45. min-idle: 5
  46. maxActive: 20
  47. maxWait: 60000
  48. timeBetweenEvictionRunsMillis: 60000
  49. minEvictableIdleTimeMillis: 300000
  50. validationQuery: SELECT 1 FROM DUAL
  51. testWhileIdle: true
  52. testOnBorrow: false
  53. testOnReturn: false
  54. poolPreparedStatements: true
  55. maxPoolPreparedStatementPerConnectionSize: 20
  56. filters: stat,slf4j
  57. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  58. primary: master
  59. jackson:
  60. date-format: yyyy-MM-dd HH:mm:ss
  61. default-property-inclusion: always
  62. deserialization:
  63. fail-on-unknown-properties: false
  64. parser:
  65. allow-single-quotes: true
  66. allow-unquoted-control-chars: true
  67. serialization:
  68. fail-on-empty-beans: false
  69. time-zone: GMT+8
  70. redis:
  71. host: 172.16.120.165
  72. password: 123456
  73. port: 6379
  74. timeout: 10000
  75. influx:
  76. url: http://172.16.120.69:8086
  77. password: root
  78. user: root
  79. database: USKTSDB
  80. tenant:
  81. enable: true
  82. mvc:
  83. pathmatch:
  84. matching-strategy: ant_path_matcher
  85. # project
  86. wj.name: xy
  87. wj.version: 3.6.0
  88. wj.copyrightYear: 2021
  89. wj.demoEnabled: true
  90. wj.addressEnabled: true
  91. wj.captchaType: math
  92. wj.codeEnabled: false