application.yml 4.2 KB

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