application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. dubbo:
  2. application:
  3. name: account-service
  4. scan:
  5. base-packages: cn.reghao.tnb.account.app.rpc
  6. protocol:
  7. name: dubbo
  8. port: 6101
  9. server:
  10. port: 6001
  11. tomcat:
  12. max-http-form-post-size: 4MB
  13. servlet:
  14. session:
  15. cookie:
  16. secure: true
  17. http-only: true
  18. # org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getSessionTimeoutInMinutes 获取超时时间
  19. # 两个请求间隔的最大时间, 超过此时间则会话过期
  20. timeout: 10m
  21. spring:
  22. servlet:
  23. multipart:
  24. max-request-size: 1GB
  25. max-file-size: 1GB
  26. application:
  27. name: account-service
  28. profiles:
  29. active: @profile.active@
  30. mvc:
  31. pathmatch:
  32. matching-strategy: ant_path_matcher
  33. datasource:
  34. driver-class-name: com.mysql.cj.jdbc.Driver
  35. type: com.zaxxer.hikari.HikariDataSource
  36. hikari:
  37. minimum-idle: 5
  38. maximum-pool-size: 10
  39. auto-commit: true
  40. idle-timeout: 30000
  41. pool-name: EvaluationHikariCP
  42. max-lifetime: 1800000
  43. connection-timeout: 30000
  44. connection-test-query: SELECT 1
  45. session:
  46. store-type: redis
  47. redis:
  48. namespace: tnb:account:session
  49. freemarker:
  50. template-loader-path:
  51. - classpath:/templates
  52. cache: false
  53. check-template-location: true
  54. request-context-attribute: request
  55. charset: utf-8
  56. suffix: .ftl
  57. settings:
  58. classic_compatible: true #处理空值
  59. template_exception_handler: rethrow
  60. template_update_delay: 0
  61. datetime_format: yyyy-MM-dd HH:mm
  62. number_format: 0.##
  63. mybatis:
  64. configuration:
  65. map-underscore-to-camel-case: true
  66. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  67. mapper-locations: classpath*:mapper/**/**.xml
  68. type-aliases-package: cn.reghao.tnb.account.app.model.po
  69. eureka:
  70. instance:
  71. prefer-ip-address: true
  72. client:
  73. register-with-eureka: true
  74. fetch-registry: true