application.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # 项目相关配置
  2. fs:
  3. # 名称
  4. name: fs
  5. # 版本
  6. version: 1.1.0
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  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有效时长,7天,单位秒
  22. expire: 31536000
  23. header: AppToken
  24. # 开发环境配置
  25. server:
  26. # 服务器的HTTP端口,默认为8113
  27. port: 7014
  28. servlet:
  29. # 应用的访问路径
  30. context-path: /
  31. # 指定静态资源的路径
  32. resources:
  33. static-locations: classpath:/static/
  34. #设定thymeleaf
  35. thymeleaf:
  36. #thymeleaf对html的检查过于严格,设置spring.thymeleaf.mode=LEGACYHTML5
  37. mode: LEGACYHTML5
  38. cache: false
  39. tomcat:
  40. # tomcat的URI编码
  41. uri-encoding: UTF-8
  42. # tomcat最大线程数,默认为200
  43. max-threads: 800
  44. # Tomcat启动初始化的线程数,默认值25
  45. min-spare-threads: 30
  46. max-connections: 1000
  47. accept-count: 500
  48. # 日志配置
  49. logging:
  50. level:
  51. com.fs: info
  52. org.springframework: warn
  53. # Spring配置
  54. spring:
  55. cache:
  56. type: redis
  57. # 资源信息
  58. messages:
  59. # 国际化资源文件路径
  60. basename: i18n/messages
  61. profiles:
  62. active: dev
  63. # active: druid
  64. include: config
  65. # 文件上传
  66. servlet:
  67. multipart:
  68. # 单个文件大小
  69. max-file-size: 100MB
  70. # 设置总上传的文件大小
  71. max-request-size: 200MB
  72. # 服务模块
  73. devtools:
  74. restart:
  75. # 热部署开关
  76. enabled: true
  77. # token配置
  78. token:
  79. # 令牌自定义标识
  80. header: Authorization
  81. # 令牌密钥
  82. secret: abcdefghijklmnopqrstuvwxyz
  83. # 令牌有效期(默认30分钟)
  84. expireTime: 1000
  85. mybatis-plus:
  86. # 搜索指定包别名
  87. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
  88. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  89. mapperLocations: classpath*:/mapper/**/*.xml
  90. configLocation: classpath:mybatis/mybatis-config.xml
  91. # 全局配置
  92. global-config:
  93. db-config:
  94. # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  95. idType: AUTO
  96. # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  97. fieldStrategy: NOT_EMPTY
  98. banner: false
  99. # 配置
  100. configuration:
  101. # 驼峰式命名
  102. mapUnderscoreToCamelCase: true
  103. # 全局映射器启用缓存
  104. cacheEnabled: true
  105. # 配置默认的执行器
  106. defaultExecutorType: REUSE
  107. # 允许 JDBC 支持自动生成主键
  108. useGeneratedKeys: true
  109. # MyBatis配置
  110. mybatis:
  111. # 搜索指定包别名
  112. typeAliasesPackage: com.fs.**.domain
  113. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  114. mapperLocations: classpath*:mapper/**/*Mapper.xml
  115. # 加载全局的配置文件
  116. configLocation: classpath:mybatis/mybatis-config.xml
  117. # PageHelper分页插件
  118. pagehelper:
  119. helperDialect: mysql
  120. reasonable: false
  121. supportMethodsArguments: true
  122. params: count=countSql
  123. # Swagger配置
  124. swagger:
  125. # 是否开启swagger
  126. enabled: true
  127. # 请求前缀
  128. pathMapping: /
  129. # 防止XSS攻击
  130. xss:
  131. # 过滤开关
  132. enabled: true
  133. # 排除链接(多个用逗号分隔)
  134. excludes: /system/notice
  135. # 匹配链接
  136. urlPatterns: /system/*,/monitor/*,/tool/*