application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. server:
  2. port: 8848
  3. tomcat:
  4. uri-encoding: UTF-8
  5. logging:
  6. config: classpath:log.xml
  7. spring:
  8. application:
  9. name: basic
  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/market_warehouse?characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=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. # redis:
  37. # # Redis服务器地址
  38. # host: localhost
  39. # # Redis数据库索引(默认为0)
  40. # database: 0
  41. # # Redis服务器连接端口
  42. # port: 6379
  43. # # Redis服务器连接密码(默认为空)
  44. # password: 123456
  45. # # 连接超时时间
  46. # timeout: 1000ms
  47. # lettuce:
  48. # pool:
  49. # # 连接池最大连接数
  50. # max-active: 8
  51. # # 连接池最大空闲连接数
  52. # max-idle: 8
  53. # # 连接池最小空闲连接数
  54. # min-idle: 0
  55. # # 连接池最大阻塞等待时间,负值表示没有限制
  56. # max-wait: -1ms
  57. mybatis-plus:
  58. mapper-locations: classpath*:mapper/**/*Mapper.xml
  59. type-aliases-package: com.liangjiang.basic.domain
  60. global-config:
  61. banner: false
  62. db-config:
  63. id-type: input
  64. configuration:
  65. # 控制台SQL日志
  66. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  67. map-underscore-to-camel-case: false