application.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # 开发环境配置
  2. server:
  3. # 服务器的HTTP端口,默认为8080
  4. port: 8080
  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.jjt: 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: dev
  38. # 文件上传
  39. servlet:
  40. multipart:
  41. # 单个文件大小
  42. max-file-size: 1024MB
  43. # 设置总上传的文件大小
  44. max-request-size: 2048MB
  45. # 服务模块
  46. devtools:
  47. restart:
  48. # 热部署开关
  49. enabled: true
  50. # token配置
  51. token:
  52. # 令牌自定义标识
  53. header: Authorization
  54. # 令牌密钥
  55. secret: abcdefghijklmnopqrstuvwxyz
  56. # 令牌有效期(默认30分钟)
  57. expireTime: 30
  58. # MyBatis配置
  59. mybatis:
  60. # 搜索指定包别名
  61. typeAliasesPackage: com.jjt.**.domain
  62. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  63. mapperLocations: classpath*:mapper/**/*Mapper.xml
  64. # 加载全局的配置文件
  65. configLocation: classpath:mybatis/mybatis-config.xml
  66. # PageHelper分页插件
  67. pagehelper:
  68. helperDialect: mysql
  69. supportMethodsArguments: true
  70. params: count=countSql
  71. # Swagger配置
  72. swagger:
  73. # 是否开启swagger
  74. enabled: true
  75. # 请求前缀
  76. pathMapping: /dev-api
  77. # 防止XSS攻击
  78. xss:
  79. # 过滤开关
  80. enabled: true
  81. # 排除链接(多个用逗号分隔)
  82. excludes: /system/notice
  83. # 匹配链接
  84. urlPatterns: /system/*,/monitor/*,/tool/*