application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # 项目相关配置
  2. fs:
  3. # 名称
  4. name: fs
  5. # 版本
  6. version: 1.1.0
  7. # 版权年份
  8. copyrightYear: 2020
  9. # 实例演示开关
  10. demoEnabled: false
  11. # 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
  12. profile: C:/fs/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
  18. jwt:
  19. # 加密秘钥
  20. secret: f4e2e52034348f86b67cde581c0f9eb5
  21. # token有效时长,100天,单位秒
  22. expire: 8640000
  23. header: AppToken
  24. url: https://api.yjf.runtzh.com
  25. # 开发环境配置
  26. server:
  27. # 服务器的HTTP端口,默认为 7014 store 7114
  28. port: 7014
  29. servlet:
  30. # 应用的访问路径
  31. context-path: /
  32. # 指定静态资源的路径
  33. resources:
  34. static-locations: classpath:/static/
  35. #设定thymeleaf
  36. thymeleaf:
  37. #thymeleaf对html的检查过于严格,设置spring.thymeleaf.mode=LEGACYHTML5
  38. mode: LEGACYHTML5
  39. cache: false
  40. tomcat:
  41. # tomcat的URI编码
  42. uri-encoding: UTF-8
  43. # tomcat最大线程数,默认为200
  44. max-threads: 5000
  45. # Tomcat启动初始化的线程数,默认值25
  46. min-spare-threads: 100
  47. # 服务器在任何给定时间接受和处理的最大连接数。一旦达到限制,操作系统仍然可以接受基于“acceptCount”属性的连接。
  48. max-connections: 30000
  49. # 当所有可能的请求处理线程都在使用中时,传入连接请求的最大队列长度
  50. accept-count: 1000
  51. # 连接器在接受连接后等待显示请求 URI 行的时间。
  52. connection-timeout: 20000
  53. # 在关闭连接之前等待另一个 HTTP 请求的时间。如果未设置,则使用 connectionTimeout。设置为 -1 时不会超时。
  54. keep-alive-timeout: 20000
  55. # 在连接关闭之前可以进行流水线处理的最大HTTP请求数量。当设置为0或1时,禁用keep-alive和流水线处理。当设置为-1时,允许无限数量的流水线处理或keep-alive请求。
  56. max-keep-alive-requests: 100
  57. # 日志配置
  58. logging:
  59. level:
  60. com.fs: debug
  61. org.springframework: warn
  62. org.springframework.web: info
  63. cn.binarywang.wx.miniapp: debug
  64. # Spring配置
  65. spring:
  66. # 资源信息
  67. messages:
  68. # 国际化资源文件路径
  69. basename: i18n/messages
  70. profiles:
  71. active: druid
  72. include: config
  73. # 文件上传
  74. servlet:
  75. multipart:
  76. # 单个文件大小
  77. max-file-size: 10MB
  78. # 设置总上传的文件大小
  79. max-request-size: 20MB
  80. # 服务模块
  81. devtools:
  82. restart:
  83. # 热部署开关
  84. enabled: true
  85. # MyBatis配置
  86. mybatis:
  87. # 搜索指定包别名
  88. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
  89. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  90. mapperLocations: classpath*:mapper/**/*Mapper.xml
  91. # 加载全局的配置文件
  92. configLocation: classpath:mybatis/mybatis-config.xml
  93. # PageHelper分页插件
  94. pagehelper:
  95. helperDialect: mysql
  96. reasonable: false
  97. supportMethodsArguments: true
  98. params: count=countSql
  99. # Swagger配置
  100. swagger:
  101. # 是否开启swagger
  102. enabled: false
  103. # 请求前缀
  104. pathMapping: /
  105. # 防止XSS攻击
  106. xss:
  107. # 过滤开关
  108. enabled: true
  109. # 排除链接(多个用逗号分隔)
  110. excludes: /system/notice/*
  111. # 匹配链接
  112. urlPatterns: /system/*,/monitor/*,/tool/*