application.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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端口,默认为 7012 store 7112
  21. port: 7018
  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. # 资源信息
  40. messages:
  41. # 国际化资源文件路径
  42. basename: i18n/messages
  43. profiles:
  44. active: druid-test
  45. include: config
  46. # 文件上传
  47. servlet:
  48. multipart:
  49. # 单个文件大小
  50. max-file-size: 10MB
  51. # 设置总上传的文件大小
  52. max-request-size: 20MB
  53. # 服务模块
  54. devtools:
  55. restart:
  56. # 热部署开关
  57. enabled: true
  58. # token配置
  59. token:
  60. # 令牌自定义标识
  61. header: Authorization
  62. # 令牌密钥
  63. secret: abcdefghijklmnopqrstuvwxyz
  64. # 令牌有效期(默认30分钟)
  65. expireTime: 180
  66. # MyBatis配置
  67. mybatis:
  68. # 搜索指定包别名
  69. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo,com.fs.**.vo
  70. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  71. mapperLocations: classpath*:mapper/**/*Mapper.xml
  72. # 加载全局的配置文件
  73. configLocation: classpath:mybatis/mybatis-config.xml
  74. # PageHelper分页插件
  75. pagehelper:
  76. helperDialect: mysql
  77. reasonable: false #超出后不显示
  78. supportMethodsArguments: false
  79. params: count=countSql
  80. # Swagger配置
  81. swagger:
  82. # 是否开启swagger
  83. enabled: true
  84. # 请求前缀
  85. pathMapping: /dev-api
  86. # 防止XSS攻击
  87. xss:
  88. # 过滤开关
  89. enabled: true
  90. # 排除链接(多个用逗号分隔)
  91. excludes: /system/notice/*
  92. # 匹配链接
  93. urlPatterns: /system/*,/monitor/*,/tool/*