application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. server:
  2. port: 4030
  3. tomcat:
  4. max-http-form-post-size: 4MB
  5. # servlet:
  6. # session:
  7. # org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getSessionTimeoutInMinutes 获取超时时间
  8. # 两个请求间隔的最大时间, 超过此时间则会话过期
  9. # timeout: 7d
  10. # persistent: true
  11. # cookie:
  12. # secure: true
  13. # http-only: true
  14. spring:
  15. servlet:
  16. multipart:
  17. max-request-size: 1GB
  18. max-file-size: 1GB
  19. application:
  20. name: devopsmgr
  21. profiles:
  22. active: @profile.active@
  23. mvc:
  24. pathmatch:
  25. matching-strategy: ant_path_matcher
  26. session:
  27. timeout: 7d
  28. store-type: jdbc
  29. jdbc:
  30. initialize-schema: never
  31. table-name: SYS_SPRING_SESSION
  32. datasource:
  33. driver-class-name: com.mysql.cj.jdbc.Driver
  34. type: com.zaxxer.hikari.HikariDataSource
  35. hikari:
  36. minimum-idle: 5
  37. maximum-pool-size: 10
  38. auto-commit: true
  39. idle-timeout: 30000
  40. pool-name: EvaluationHikariCP
  41. max-lifetime: 1800000
  42. connection-timeout: 30000
  43. connection-test-query: SELECT 1
  44. jpa:
  45. show-sql: false
  46. open-in-view: true
  47. hibernate:
  48. ddl-auto: update
  49. properties:
  50. hibernate.dialect: org.hibernate.dialect.MySQLDialect
  51. hibernate.format_sql: true
  52. hibernate.show_sql: false
  53. hibernate.cache.use_second_level_cache: false
  54. freemarker:
  55. cache: true
  56. template-loader-path:
  57. - classpath:/templates
  58. check-template-location: true
  59. request-context-attribute: request
  60. charset: utf-8
  61. suffix: .ftl
  62. settings:
  63. classic_compatible: true #处理空值
  64. template_exception_handler: rethrow
  65. template_update_delay: 0
  66. datetime_format: yyyy-MM-dd HH:mm
  67. number_format: 0.##
  68. auto_import: /utils.ftl as utils
  69. management:
  70. endpoints:
  71. web:
  72. base-path: /api/actuator
  73. exposure:
  74. include: "*"
  75. metrics:
  76. tags:
  77. application: ${spring.application.name}
  78. logging:
  79. level:
  80. org: OFF