application.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. server:
  2. port: 8080
  3. error:
  4. include-exception: true
  5. include-message: always
  6. servlet:
  7. context-path: / #项目名称
  8. session.timeout: P0DT60M0S #D天H小时M分钟S秒,字符T是紧跟在时分秒之前的,每个单位都必须由数字开始,且时分秒顺序不能乱
  9. encoding:
  10. force: true
  11. charset: utf-8
  12. enabled: true
  13. # ssl: #https证书配置 配置了之后只能通过https访问应用
  14. # key-store: xxx.pfx 证书文件
  15. # key-store-password: 1234 证书密码
  16. #配置日志
  17. logging:
  18. level:
  19. net.mingsoft: debug
  20. config: classpath:log4j-spring.xml
  21. ms:
  22. xss:
  23. enable: true #xss过滤器的开关
  24. filter-url: /** #过滤的url,多个用逗号分开
  25. exclude-url: /static/**,/template/**,/file/upload.do,/static/plugins/ueditor/1.4.3.3/jsp/editor.do #排除的url,多个用逗号分开
  26. # mstore-url: http://store.i.mingsoft.net
  27. # mstore-host: store.i.mingsoft.net
  28. # shiro-key: #16位长度,不填写默认随机生成
  29. cookie-name: SHIRO_SESSION_ID
  30. diy:
  31. html-dir: html
  32. rand-code:
  33. length: 4 #验证码长度
  34. circle: 10 #干扰线条数,值越大越不容易辨别
  35. # scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题
  36. swagger:
  37. enable: false #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html
  38. manager:
  39. path: /ms #后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改
  40. check-code: true #默认开启验证码验证,false验证码不验证
  41. upload:
  42. enable-web: false #启用web层的上传
  43. template: template #模板文件夹支持重命名,不支持路径
  44. path: upload #文件上传路径,可以根据实际写绝对路径
  45. mapping: /upload/** #修改需要谨慎,系统第一次部署可以随意修改,如果已经有了上传数据,再次修改会导致之前上传的文件404
  46. denied: exe,jsp,xml,sh,bat,py,ftl,jspx
  47. back-up: /upload_back
  48. multipart:
  49. #最大上传文件大小 单位:KB
  50. max-file-size: 1024
  51. #文件暂存临时目录
  52. upload-temp-dir: temp
  53. #临时文件大小
  54. max-in-memory-size: 10240
  55. #总上传最大大小 单位:KB -1禁用
  56. max-request-size: -1
  57. spring:
  58. main:
  59. allow-circular-references: true
  60. datasource:
  61. druid:
  62. initialSize: 5 #初始连接数,默认0
  63. minIdle: 5 #最小连接数,默认8
  64. maxActive: 20 #最大连接数,默认8
  65. maxWait: 2000 #获取连接的最大等待时间,单位毫秒
  66. validationQuery: SELECT 1
  67. testOnBorrow: true #设置从连接池获取连接时是否检查连接有效性,true检查,false不检查
  68. testOnReturn: true #设置从连接池归还连接时是否检查连接有效性,true检查,false不检查
  69. poolPreparedStatements: true #可以支持PSCache(提升写入、查询效率)
  70. filters: stat,wall #配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  71. keepAlive: true #保持长连接
  72. stat-view-servlet:
  73. enabled: false #启用druid监控
  74. profiles:
  75. active: dev
  76. cache:
  77. ehcache:
  78. config: classpath:ehcache.xml
  79. mvc:
  80. pathmatch:
  81. matching-strategy: ANT_PATH_MATCHER
  82. use-suffix-pattern: true
  83. devtools:
  84. restart:
  85. enabled: true
  86. additional-paths: src/main/java
  87. exclude: static/**,WEB-INF/**
  88. servlet:
  89. multipart:
  90. max-request-size: 100MB
  91. enabled: false
  92. freemarker:
  93. suffix: .ftl
  94. charset: UTF-8
  95. content-type: text/html
  96. allow-request-override: true
  97. allow-session-override: true
  98. expose-request-attributes: true
  99. expose-session-attributes: true
  100. expose-spring-macro-helpers: true
  101. prefer-file-system-access: false
  102. template-loader-path: file:WEB-INF/,file:WEB-INF/manager,classpath:/,classpath:/WEB-INF/manager,classpath:/WEB-INF
  103. settings:
  104. template_update_delay: 1
  105. default_encoding: UTF-8
  106. classic_compatible: true
  107. date_format: yyyy-MM-dd
  108. time_format: HH:mm:ss
  109. datetime_format: yyyy-MM-dd HH:mm:ss
  110. number_format: 0.##
  111. mybatis-plus:
  112. global-config:
  113. db-config:
  114. id-type: auto
  115. select-strategy: not_empty
  116. configuration:
  117. database-id: mysql