application.yml 3.3 KB

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