application-dev.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # 项目相关配置
  2. purchase:
  3. # 名称
  4. name: purchase
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/purchase/uploadPath,Linux配置 /home/purchase/uploadPath)
  12. profile: D:/purchase/uploadPath
  13. # profile: /Users/sunhuanhuan/Documents/project/106/文档/purchase/uploadPath
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: math
  18. # 全部用户是否开启接口权限校验,排除admin用户
  19. permissionsEnable: false
  20. # 开发环境配置
  21. server:
  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.ozs: 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. # 文件上传
  51. servlet:
  52. multipart:
  53. # 单个文件大小
  54. max-file-size: 10MB
  55. # 设置总上传的文件大小
  56. max-request-size: 20MB
  57. # 服务模块
  58. devtools:
  59. restart:
  60. # 热部署开关
  61. enabled: true
  62. # redis 配置
  63. redis:
  64. # 地址
  65. host: 124.70.58.209
  66. # 端口,默认为6379
  67. port: 7001
  68. # 数据库索引
  69. database: 0
  70. # 密码
  71. password: 106@qwe123
  72. # 连接超时时间
  73. timeout: 100s
  74. lettuce:
  75. pool:
  76. # 连接池中的最小空闲连接
  77. min-idle: 0
  78. # 连接池中的最大空闲连接
  79. max-idle: 8
  80. # 连接池的最大数据库连接数
  81. max-active: 8
  82. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  83. max-wait: -1ms
  84. # token配置
  85. token:
  86. # 令牌自定义标识
  87. header: Authorization
  88. # 令牌密钥
  89. secret: abcdefghijklmnopqrstuvwxyz
  90. # 令牌有效期(默认30分钟)
  91. expireTime: 3000
  92. # MyBatis配置
  93. mybatis:
  94. # 搜索指定包别名
  95. typeAliasesPackage: com.ozs.**.domain
  96. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  97. mapperLocations: classpath*:mapper/**/*Mapper.xml
  98. # 加载全局的配置文件
  99. configLocation: classpath:mybatis/mybatis-config.xml
  100. # MyBatis-plus配置
  101. mybatis-plus:
  102. config-location: classpath:mybatis/mybatis-config.xml
  103. typeAliasesPackage: com.ozs.**.domain
  104. mapperLocations: classpath*:mapper/**/*Mapper.xml
  105. # PageHelper分页插件
  106. pagehelper:
  107. helperDialect: mysql
  108. supportMethodsArguments: true
  109. params: count=countSql
  110. # Swagger配置
  111. swagger:
  112. # 是否开启swagger
  113. enabled: true
  114. # 请求前缀
  115. # pathMapping: /dev-api
  116. pathMapping: /
  117. # 防止XSS攻击
  118. xss:
  119. # 过滤开关
  120. enabled: true
  121. # 排除链接(多个用逗号分隔)
  122. excludes: /system/notice
  123. # 匹配链接
  124. urlPatterns: /system/*,/monitor/*,/tool/*
  125. elasticsearch:
  126. host: 124.70.58.209
  127. port: 9121
  128. # host: 127.0.0.1
  129. # port: 9200