application.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.goldenwater: 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. # token配置
  39. token:
  40. # 令牌自定义标识
  41. header: Authorization
  42. # 令牌密钥
  43. secret: abcdefghijklmnopqrstuvwxyz
  44. # 令牌有效期(默认30分钟)
  45. expireTime: 30
  46. # MyBatis配置
  47. mybatis:
  48. # 搜索指定包别名
  49. typeAliasesPackage: com.goldenwater.**.domain
  50. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  51. mapperLocations: classpath*:mapper/**/*Mapper.xml
  52. # 加载全局的配置文件
  53. configLocation: classpath:mybatis/mybatis-config.xml
  54. # PageHelper分页插件
  55. pagehelper:
  56. helperDialect: dm
  57. supportMethodsArguments: true
  58. params: count=countSql