application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. profile: /Users/jueqin/javares/profile/fs/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: char
  18. # 开发环境配置
  19. server:
  20. # 服务器的HTTP端口,默认为 7011 store 7111
  21. port: 7015
  22. servlet:
  23. # 应用的访问路径
  24. context-path: /
  25. tomcat:
  26. # tomcat的URI编码
  27. uri-encoding: UTF-8
  28. # tomcat最大线程数,默认为200
  29. max-threads: 800
  30. # Tomcat启动初始化的线程数,默认值25
  31. min-spare-threads: 30
  32. # 日志配置
  33. logging:
  34. level:
  35. com.fs: debug
  36. org.springframework: warn
  37. # Spring配置
  38. spring:
  39. mvc:
  40. async:
  41. request-timeout: 30000
  42. # 资源信息
  43. messages:
  44. # 国际化资源文件路径
  45. basename: i18n/messages
  46. profiles:
  47. active: dev
  48. include: config
  49. # 文件上传
  50. servlet:
  51. multipart:
  52. enabled: false # 默认是 true,确认一下
  53. # 单个文件大小
  54. max-file-size: 200MB
  55. # 设置总上传的文件大小
  56. max-request-size: 200MB
  57. # 服务模块
  58. devtools:
  59. restart:
  60. # 热部署开关
  61. enabled: true
  62. datasource:
  63. druid:
  64. stat-view-servlet:
  65. enabled: false
  66. # token配置
  67. token:
  68. # 令牌自定义标识
  69. header: Authorization
  70. # 令牌密钥
  71. secret: abcdefghijklmnopqrstuvwxyz
  72. # 令牌有效期(默认30分钟)
  73. expireTime: 180
  74. # MyBatis配置
  75. mybatis:
  76. # 搜索指定包别名
  77. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
  78. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  79. mapperLocations: classpath*:mapper/**/*Mapper.xml
  80. # 加载全局的配置文件
  81. configLocation: classpath:mybatis/mybatis-config.xml
  82. # PageHelper分页插件
  83. pagehelper:
  84. helperDialect: mysql
  85. reasonable: false #超出后不显示
  86. supportMethodsArguments: false
  87. params: count=countSql
  88. # Swagger配置
  89. swagger:
  90. # 是否开启swagger
  91. enabled: true
  92. # 请求前缀
  93. pathMapping: /dev-api
  94. # 防止XSS攻击
  95. xss:
  96. # 过滤开关
  97. enabled: true
  98. # 排除链接(多个用逗号分隔)
  99. excludes: /system/notice/*,/system/config/*
  100. # 匹配链接
  101. urlPatterns: /system/*,/monitor/*,/tool/*