application.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. server:
  2. port: 82
  3. tomcat:
  4. uri-encoding: UTF-8
  5. logging:
  6. config: classpath:log.xml
  7. spring:
  8. application:
  9. name: price_collection
  10. main:
  11. allow-bean-definition-overriding: true
  12. allow-circular-references: true
  13. # 全局配置响应日期格式和时区为东八区,解决日期类型返回前端少八个小时的问题
  14. jackson:
  15. time-zone: GMT+8
  16. datasource:
  17. username: root
  18. password: zxc123...
  19. url: jdbc:mysql://as.skyfffire.com:3306/one_price_warehouse?characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&allowMultiQueries=true
  20. driver-class-name: com.mysql.cj.jdbc.Driver
  21. type: com.alibaba.druid.pool.DruidDataSource
  22. druid:
  23. initial-size: 20
  24. max-active: 80
  25. min-idle: 20
  26. max-wait: 60000
  27. timeBetweenEvictionRunsMillis: 60000
  28. minEvictableIdleTimeMillis: 1800000
  29. validationQuery: SELECT 1
  30. testWhileIdle: true
  31. testOnBorrow: false
  32. testOnReturn: false
  33. poolPreparedStatements: true
  34. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计。‘wall’用于防火墙
  35. filters: stat,wall
  36. filter:
  37. wall:
  38. config:
  39. none-base-statement-allow: true
  40. multi-statement-allow: true
  41. # redis:
  42. # # Redis服务器地址
  43. # host: localhost
  44. # # Redis数据库索引(默认为0)
  45. # database: 0
  46. # # Redis服务器连接端口
  47. # port: 6379
  48. # # Redis服务器连接密码(默认为空)
  49. # password: 123456
  50. # # 连接超时时间
  51. # timeout: 1000ms
  52. # lettuce:
  53. # pool:
  54. # # 连接池最大连接数
  55. # max-active: 8
  56. # # 连接池最大空闲连接数
  57. # max-idle: 8
  58. # # 连接池最小空闲连接数
  59. # min-idle: 0
  60. # # 连接池最大阻塞等待时间,负值表示没有限制
  61. # max-wait: -1ms
  62. mybatis-plus:
  63. mapper-locations: classpath*:mapper/**/*Mapper.xml
  64. type-aliases-package: com.liangjiang.price_collection.domain
  65. global-config:
  66. banner: false
  67. db-config:
  68. id-type: input
  69. configuration:
  70. # 控制台SQL日志
  71. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  72. map-underscore-to-camel-case: false