application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # 项目相关配置
  2. game:
  3. # 名称
  4. name: Game
  5. # 版本
  6. version: 3.8.7
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 文件路径 示例( Windows配置D:/recruit/uploadPath,Linux配置 /home/recruit/uploadPath)
  10. profile: D:/game/uploadPath
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8080
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # 连接数满后的排队数,默认为100
  26. accept-count: 1000
  27. threads:
  28. # tomcat最大线程数,默认为200
  29. max: 800
  30. # Tomcat启动初始化的线程数,默认值10
  31. min-spare: 100
  32. # 日志配置
  33. logging:
  34. level:
  35. com.game: debug
  36. org.springframework: warn
  37. # 用户配置
  38. user:
  39. password:
  40. # 密码最大错误次数
  41. maxRetryCount: 5
  42. # 密码锁定时间(默认10分钟)
  43. lockTime: 10
  44. # Spring配置
  45. spring:
  46. # 资源信息
  47. messages:
  48. # 国际化资源文件路径
  49. basename: i18n/messages
  50. profiles:
  51. active: druid
  52. # 文件上传
  53. servlet:
  54. multipart:
  55. # 单个文件大小
  56. max-file-size: 10MB
  57. # 设置总上传的文件大小
  58. max-request-size: 20MB
  59. # 服务模块
  60. devtools:
  61. restart:
  62. # 热部署开关
  63. enabled: true
  64. # redis 配置
  65. redis:
  66. # 地址
  67. host: 148.66.10.10
  68. # 端口,默认为6379
  69. port: 6379
  70. # 数据库索引
  71. database: 9
  72. # 密码
  73. password: Buslive@0530
  74. # 连接超时时间
  75. timeout: 10s
  76. lettuce:
  77. pool:
  78. # 连接池中的最小空闲连接
  79. min-idle: 0
  80. # 连接池中的最大空闲连接
  81. max-idle: 8
  82. # 连接池的最大数据库连接数
  83. max-active: 8
  84. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  85. max-wait: -1ms
  86. # token配置
  87. token:
  88. # 令牌自定义标识
  89. header: Authorization
  90. # 令牌密钥
  91. secret: abcdefghijklmnopqrstuvwxyz
  92. # 令牌有效期(默认30分钟)
  93. expireTime: 30
  94. # MyBatis配置
  95. #mybatis:
  96. # # 搜索指定包别名
  97. # typeAliasesPackage: com.game.**.domain
  98. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  99. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  100. # # 加载全局的配置文件
  101. # configLocation: classpath:mybatis/mybatis-config.xml
  102. # MyBatis-plus配置
  103. mybatis-plus:
  104. # 搜索指定包别名
  105. typeAliasesPackage: com.game.**.domain
  106. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  107. mapperLocations: classpath*:mapper/**/*Mapper.xml
  108. # 加载全局的配置文件
  109. configLocation: classpath:mybatis/mybatis-config.xml
  110. # configuration:
  111. # log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  112. # PageHelper分页插件
  113. pagehelper:
  114. helperDialect: mysql
  115. supportMethodsArguments: true
  116. params: count=countSql
  117. # Swagger配置
  118. swagger:
  119. # 是否开启swagger
  120. enabled: true
  121. # 请求前缀
  122. pathMapping: /
  123. # 防止XSS攻击
  124. xss:
  125. # 过滤开关
  126. enabled: true
  127. # 排除链接(多个用逗号分隔)
  128. excludes: /system/notice
  129. # 匹配链接
  130. urlPatterns: /system/*,/monitor/*,/tool/*