application.yml 1.9 KB

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