application.yml 4.5 KB

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