application.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. dubbo:
  2. application:
  3. register-consumer: false
  4. server:
  5. port: 6010
  6. tomcat:
  7. max-http-form-post-size: 4MB
  8. servlet:
  9. session:
  10. cookie:
  11. secure: true
  12. http-only: true
  13. # org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getSessionTimeoutInMinutes 获取超时时间
  14. # 两个请求间隔的最大时间, 超过此时间则会话过期
  15. timeout: 10m
  16. spring:
  17. threads:
  18. virtual:
  19. enabled: true
  20. application:
  21. name: admin-service
  22. profiles:
  23. active: @profile.active@
  24. mvc:
  25. pathmatch:
  26. matching-strategy: ant_path_matcher
  27. servlet:
  28. multipart:
  29. max-request-size: 5MB
  30. max-file-size: 5MB
  31. session:
  32. store-type: redis
  33. redis:
  34. namespace: tnb:auth:session
  35. datasource:
  36. driver-class-name: com.mysql.cj.jdbc.Driver
  37. type: com.zaxxer.hikari.HikariDataSource
  38. hikari:
  39. minimum-idle: 5
  40. maximum-pool-size: 10
  41. auto-commit: true
  42. idle-timeout: 30000
  43. pool-name: EvaluationHikariCP
  44. max-lifetime: 1800000
  45. connection-timeout: 30000
  46. connection-test-query: SELECT 1
  47. mybatis:
  48. configuration:
  49. map-underscore-to-camel-case: true
  50. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  51. mapper-locations: classpath*:mapper/**/**.xml
  52. type-aliases-package: cn.reghao.tnb.admin.model.po