You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

1 week ago
  1. spring:
  2. jackson:
  3. time-zone: GMT+8
  4. profiles:
  5. active: dev
  6. freemarker:
  7. suffix: .ftl
  8. #template-loader-path: '${user.dir}/templates' #外部页面设置 settings:
  9. number_format: '0.##' #格式化数字, 无小数
  10. datasource:
  11. type: com.alibaba.druid.pool.DruidDataSource
  12. druid:
  13. initial-size: 5 # 初始化大小
  14. max-active: 100 # 最大
  15. min-idle: 5 # 最小
  16. max-wait: 60000 # 连接超时时间
  17. login-timeout: 30
  18. pool-prepared-statements: true
  19. max-pool-prepared-statement-per-connection-size: 20
  20. validation-query: SELECT 1
  21. validation-query-timeout: 2000
  22. test-while-idle: true # 当连接空闲时,是否执行连接测试
  23. test-on-borrow: false # 当从连接池借用连接时,是否测试该连接
  24. test-on-return: false # 在连接归还到连接池时是否测试该连接
  25. time-between-eviction-runs-millis: 60000
  26. min-evictable-idle-time-millis: 30000
  27. filters: stat,wall, # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  28. web-stat-filter:
  29. url-pattern: /*
  30. exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
  31. session-stat-enable: true
  32. stat-view-servlet:
  33. url-pattern: /druid/*
  34. login-username: admin
  35. login-password: 123456
  36. server:
  37. port: 8086
  38. servlet:
  39. session:
  40. timeout: 1800s
  41. cookie:
  42. name: sessionid_chin_plate2021