application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. dubbo:
  2. application:
  3. name: bntweb
  4. qos-enable: true
  5. qos-port: 24030
  6. qos-accept-foreign-ip: false
  7. scan:
  8. base-packages: cn.reghao.bnt.web.console.rpc
  9. protocol:
  10. name: dubbo
  11. port: 14030
  12. server:
  13. port: 4030
  14. tomcat:
  15. max-http-form-post-size: 4MB
  16. # servlet:
  17. # session:
  18. # org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getSessionTimeoutInMinutes 获取超时时间
  19. # 两个请求间隔的最大时间, 超过此时间则会话过期
  20. # timeout: 7d
  21. # persistent: true
  22. # cookie:
  23. # secure: true
  24. # http-only: true
  25. spring:
  26. servlet:
  27. multipart:
  28. max-request-size: 1GB
  29. max-file-size: 1GB
  30. application:
  31. name: bntweb
  32. profiles:
  33. active: @profile.active@
  34. mvc:
  35. pathmatch:
  36. matching-strategy: ant_path_matcher
  37. session:
  38. timeout: 7d
  39. store-type: jdbc
  40. jdbc:
  41. initialize-schema: never
  42. table-name: SYS_SPRING_SESSION
  43. datasource:
  44. driver-class-name: com.mysql.cj.jdbc.Driver
  45. type: com.zaxxer.hikari.HikariDataSource
  46. hikari:
  47. minimum-idle: 5
  48. maximum-pool-size: 10
  49. auto-commit: true
  50. idle-timeout: 30000
  51. pool-name: EvaluationHikariCP
  52. max-lifetime: 1800000
  53. connection-timeout: 30000
  54. connection-test-query: SELECT 1
  55. jpa:
  56. show-sql: false
  57. open-in-view: true
  58. hibernate:
  59. ddl-auto: update
  60. properties:
  61. hibernate.format_sql: true
  62. hibernate.show_sql: false
  63. hibernate.naming.physical-strategy: org.hibernate.scripts.model.naming.PhysicalNamingStrategyStandardImpl
  64. hibernate.cache.use_second_level_cache: false
  65. hibernate.search.backend.directory.type: local-filesystem
  66. hibernate.search.backend.directory.root: ${app.luceneDir}
  67. hibernate.search.backend.analysis.configurer: class:cn.reghao.bnt.web.blog.hibernate.MyLuceneAnalysisConfigurer
  68. # hibernate.search.default.directory_provider: filesystem
  69. # hibernate.search.default.indexBase: ${app.indexDir}
  70. freemarker:
  71. cache: true
  72. template-loader-path:
  73. - classpath:/templates
  74. check-template-location: true
  75. request-context-attribute: request
  76. charset: utf-8
  77. suffix: .ftl
  78. settings:
  79. classic_compatible: true #处理空值
  80. template_exception_handler: rethrow
  81. template_update_delay: 0
  82. datetime_format: yyyy-MM-dd HH:mm
  83. number_format: 0.##
  84. auto_import: /utils.ftl as utils
  85. app:
  86. baseDir: /opt/data/bntdata
  87. devopsDir: ${app.basedir}/devops
  88. luceneDir: ${app.basedir}/lucene
  89. fileDir: ${app.basedir}/file
  90. options:
  91. site_logo: /dist/images/logo.png
  92. site_favicon: /dist/images/favicon.png
  93. management:
  94. endpoints:
  95. web:
  96. base-path: /bg/api/actuator
  97. exposure:
  98. include: "*"
  99. metrics:
  100. tags:
  101. application: ${spring.application.name}