application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. # 开发环境配置
  2. server:
  3. # 服务器的HTTP端口,默认为8080
  4. port: 20002
  5. # ssl:
  6. # key-store: classpath:keystore.p12
  7. # key-store-password: 123456
  8. # key-password: 123456
  9. servlet:
  10. # session:
  11. # cookie:
  12. # secure: true
  13. # error:
  14. # whitelabel:
  15. # enabled: false
  16. # 应用的访问路径
  17. context-path: /
  18. tomcat:
  19. # tomcat的URI编码
  20. uri-encoding: UTF-8
  21. # 连接数满后的排队数,默认为100
  22. accept-count: 1000
  23. threads:
  24. # tomcat最大线程数,默认为200
  25. max: 800
  26. # Tomcat启动初始化的线程数,默认值10
  27. min-spare: 100
  28. # Spring配置
  29. spring:
  30. # 资源信息
  31. messages:
  32. # 国际化资源文件路径
  33. basename: i18n/messages
  34. profiles:
  35. active: prod
  36. # 文件上传
  37. servlet:
  38. multipart:
  39. # 单个文件大小
  40. max-file-size: 10MB
  41. # 设置总上传的文件大小
  42. max-request-size: 60MB
  43. # 服务模块
  44. devtools:
  45. restart:
  46. # 热部署开关
  47. enabled: true
  48. # token配置
  49. token:
  50. # 令牌自定义标识
  51. header: Authorization
  52. # 令牌密钥
  53. secret: abcdefghijklmnopqrstuvwxyz
  54. # 令牌有效期(默认30分钟)
  55. expireTime: 30
  56. # MyBatis配置
  57. mybatis-plus:
  58. # 搜索指定包别名
  59. typeAliasesPackage: com.zksy.**.domain
  60. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  61. mapperLocations: classpath*:mapper/**/*Mapper.xml
  62. # 加载全局的配置文件
  63. configLocation: classpath:mybatis/mybatis-config.xml
  64. # PageHelper分页插件
  65. pagehelper:
  66. helperDialect: mysql
  67. supportMethodsArguments: true
  68. params: count=countSql
  69. # Swagger配置
  70. swagger:
  71. # 是否开启swagger
  72. enabled: false
  73. # 请求前缀
  74. pathMapping: /dev-api
  75. # 防止XSS攻击
  76. xss:
  77. # 过滤开关
  78. enabled: true
  79. # 排除链接(多个用逗号分隔)
  80. excludes: /system/notice
  81. # 匹配链接
  82. urlPatterns: /system/*,/monitor/*,/tool/*