application.yml 2.0 KB

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