application.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.8
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /c:/files
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数字计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8087
  21. # ssl:
  22. # key-store: classpath:qc-server.huaxiazhizao.com.jks
  23. # key-store-type: JKS
  24. # key-store-password: 35zrlnoe
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # 连接数满后的排队数,默认为100
  32. accept-count: 1000
  33. threads:
  34. # tomcat最大线程数,默认为200
  35. max: 800
  36. # Tomcat启动初始化的线程数,默认值10
  37. min-spare: 100
  38. # form表单长度 -1表示不限制
  39. max-http-form-post-size: 10485760 # 10M
  40. # http 头大小默认8k
  41. max-http-header-size: 1MB
  42. # 日志配置
  43. logging:
  44. level:
  45. com.ruoyi: debug
  46. org.springframework: warn
  47. config: classpath:logback-spring.xml
  48. # 用户配置
  49. user:
  50. password:
  51. # 密码最大错误次数
  52. maxRetryCount: 5
  53. # 密码锁定时间(默认10分钟)
  54. lockTime: 10
  55. # Spring配置
  56. spring:
  57. application:
  58. name: sundry
  59. # 资源信息
  60. messages:
  61. # 国际化资源文件路径
  62. basename: i18n/messages
  63. profiles:
  64. active: druid
  65. web:
  66. resources:
  67. static-locations:
  68. - classpath:/public/
  69. - classpath:/static/
  70. - classpath:/resources/
  71. - classpath:/META-INF/resources/
  72. - file:${ruoyi.profile}/public/
  73. # 文件上传
  74. servlet:
  75. multipart:
  76. # 单个文件大小
  77. max-file-size: 10MB
  78. # 设置总上传的文件大小
  79. max-request-size: 20MB
  80. # 服务模块
  81. devtools:
  82. restart:
  83. # 热部署开关
  84. enabled: true
  85. # redis 配置
  86. redis:
  87. # 地址
  88. host: localhost
  89. # 端口,默认为6379
  90. port: 6379
  91. # 数据库索引
  92. database: 0
  93. # 密码
  94. password:
  95. # 连接超时时间
  96. timeout: 10s
  97. lettuce:
  98. pool:
  99. # 连接池中的最小空闲连接
  100. min-idle: 0
  101. # 连接池中的最大空闲连接
  102. max-idle: 8
  103. # 连接池的最大数据库连接数
  104. max-active: 8
  105. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  106. max-wait: -1ms
  107. redisson:
  108. config: |
  109. singleServerConfig:
  110. idleConnectionTimeout: 10000
  111. connectTimeout: 10000
  112. timeout: 3000
  113. retryAttempts: 3
  114. retryInterval: 1500
  115. address: redis://${spring.redis.host}:${spring.redis.port}
  116. password: ${spring.redis.password}
  117. clientName: null
  118. keepAlive: false
  119. tcpNoDelay: false
  120. # 单个连接最大订阅数量
  121. subscriptionsPerConnection: 5
  122. # 发布和订阅连接的最小空闲连接数
  123. subscriptionConnectionMinimumIdleSize: 1
  124. # 发布和订阅连接池大小
  125. subscriptionConnectionPoolSize: 50
  126. # 最小空闲连接数
  127. connectionMinimumIdleSize: 32
  128. # 连接池大小
  129. connectionPoolSize: 64
  130. # 数据库编号
  131. database: ${spring.redis.database}
  132. # DNS监测时间间隔,单位:毫秒
  133. dnsMonitoringInterval: 5000
  134. threads: 8
  135. nettyThreads: 8
  136. codec: !<org.redisson.client.codec.StringCodec> {}
  137. transportMode: "NIO"
  138. # token配置
  139. token:
  140. # 令牌自定义标识
  141. header: Authorization
  142. # 令牌密钥
  143. secret: abcdefghijklmnopqrstuvwxyz
  144. # 令牌有效期(默认30分钟)
  145. expireTime: 10080
  146. # MyBatis配置
  147. mybatis:
  148. # 搜索指定包别名
  149. typeAliasesPackage: com.ruoyi.**.domain,com.huaxia.**.domain,com.huaxia.**.entity,com.huaxia.**.po,com.frm.**.domain
  150. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  151. mapperLocations: classpath*:mapper/**/*Mapper.xml
  152. # 加载全局的配置文件
  153. configLocation: classpath:mybatis/mybatis-config.xml
  154. # MyBatis-Plus配置
  155. mybatis-plus:
  156. # 搜索指定包别名
  157. typeAliasesPackage: com.ruoyi.**.domain,com.huaxia.**.domain,com.huaxia.**.entity,com.huaxia.**.po,com.frm.**.domain
  158. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  159. mapperLocations: classpath*:mapper/**/*Mapper.xml
  160. # 加载全局的配置文件
  161. configLocation: classpath:mybatis/mybatis-config.xml
  162. #configuration: # configLocation 和 configuration 只能二选一
  163. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # org.apache.ibatis.logging.slf4j.Slf4jImpl
  164. # (全局起作用)配置mybaits自定义类型转换类所在的包
  165. #typeHandlersPackage: com.hxitsys.framework.config.mybatis.typehandler
  166. checkConfigLocation: true
  167. global-config:
  168. banner: false
  169. enable-sql-runner: true
  170. db-config:
  171. logic-delete-field: deleted # 全局逻辑删除的实体字段名(自3.3.0,配置后可以忽略不配置实体类字段标注@TableLogic private Integer deleted;)
  172. logic-delete-value: 1 # 逻辑已删除值(默认 1)
  173. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  174. # PageHelper分页插件
  175. pagehelper:
  176. helperDialect: mysql
  177. supportMethodsArguments: true
  178. params: count=countSql
  179. --- ### 文档 ###
  180. springdoc:
  181. api-docs:
  182. enabled: true
  183. path: /v3/api-docs
  184. swagger-ui:
  185. enabled: true
  186. path: /swagger-ui
  187. default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
  188. knife4j: # since v2.0.6, 用以替代 @EnableKnife4j
  189. enable: true # 是否开启增强属性,默认false
  190. documents:
  191. - group: 4.5.0版本 # 所属分组
  192. name: 接口签名 # 类似于接口中的tag,对于自定义文档的分组
  193. locations: classpath:md/* # markdown文件路径,可以是一个文件夹(classpath:markdowns/*),也可以是单个文件(classpath:md/sign.md)
  194. setting:
  195. language: zh-CN # Ui默认显示语言,目前主要有两种:中文(zh-CN)、英文(en-US)。默认zh-CN
  196. production: false # 是否开启生产环境保护策略,默认false
  197. basic:
  198. enable: true # 对Knife4j提供的资源提供BasicHttp校验,保护文档。默认false
  199. username: test
  200. password: 123123
  201. # 防止XSS攻击
  202. xss:
  203. # 过滤开关
  204. enabled: true
  205. # 排除链接(多个用逗号分隔)
  206. excludes: /system/notice
  207. # 匹配链接
  208. urlPatterns: /system/*,/monitor/*,/tool/*
  209. # 自定义属性文件
  210. # 见 com.cmpt.sns.web.config.SnsProperties
  211. config:
  212. security: prod-line-admin/src/main/resources/security.properties
  213. oss: prod-line-admin/src/main/resources/oss.properties
  214. sns: prod-line-admin/src/main/resources/sns.properties
  215. config-center:
  216. # 静态资源域名
  217. static-prefix: http://localhost:${server.port}
  218. ## 接入 XXL-SSO
  219. #xxl:
  220. # sso:
  221. # # server: https://sso-server.huaxiazhizao.com/sso
  222. # server: http://localhost:8086/sso
  223. # logout:
  224. # path: /logout
  225. # excluded:
  226. # paths:
  227. ## RocketMQ 集群
  228. #rocketmq:
  229. ## name-server: 117.28.241.198:9876 #192.168.0.234:9876
  230. ## name-server: 192.168.0.234:9876 #192.168.0.234:9876
  231. # producer:
  232. # group: ${spring.application.name}-ProducerGroup
  233. # send-message-timeout: 10000 # 消息发送超时时长,默认3s
  234. # retry-times-when-send-failed: 3 # 同步发送消息失败重试次数,默认2
  235. # retry-times-when-send-async-failed: 3 # 异步发送消息失败重试次数,默认2
  236. # max-message-size: 1048576 # 消息最大长度,默认1024 * 1024 * 4(默认4M)
  237. # compress-message-body-threshold: 4096 # 压缩消息阈值,默认4k(1024 * 4)
  238. # retry-next-server: false # 是否在内部发送失败时重试另一个broker,默认false
  239. # #access-key: rocketmq2
  240. # #secret-key: 12345678
  241. # consumer:
  242. # group: ${spring.application.name}-ConsumerGroup
  243. #
  244. #
  245. # ## 以下搞点自定义配置用于 AbstractRocketConsumer 的 DefaultMQPushConsumer
  246. # #消费者线程数量
  247. # consumeThreadMin: 5
  248. # consumeThreadMax: 32
  249. # #设置一次消费消息的条数,默认为1条
  250. # consumeMessageBatchMaxSize: 1
  251. #MQTT配置
  252. mqtt :
  253. # MQTT服务端地址 多个使用逗号分割如:tcp://192.168.0.234:1883,tcp://192.168.0.235:1883
  254. url: tcp://117.72.113.54:1883
  255. #用户名
  256. username: admin
  257. password: eW8kAH3WMZ5B5TTD
  258. #客户端id 不能重复
  259. client:
  260. id: ${spring.application.name}
  261. #MQTT 默认订阅主题
  262. topic:
  263. default: TestTopic
  264. jfrm:
  265. swagger:
  266. title: 华阳集团企业资源规划
  267. description: 订单+采购+仓储+生产
  268. version: ${ruoyi.version}
  269. url: unspecified
  270. email: noname@qq.com
  271. license: MIT
  272. license-url: unspecified
  273. --- ### 自定义 ###
  274. jfrm:
  275. info:
  276. version: 1.0.1-snapshot
  277. base-package: com.huaxia
  278. mapper-package: ${jfrm.info.base-package}, com.ruoyi.**.mapper,com.cmpt.**.mapper,com.huaxia.**.mapper,com.frm.**.mapper # 该包目录将用于 MyBatis Mapper 扫描
  279. mybatis-plus:
  280. pagination:
  281. enabled: true # 开启分页
  282. optimistic:
  283. enabled: true # 开启乐观锁
  284. web:
  285. member-api:
  286. prefix: /member-api
  287. controller: com.**.controller.member.**
  288. admin-api:
  289. prefix: /admin-api
  290. controller: com.**.controller.admin.**
  291. admin-ui:
  292. url: http://localhost:${server.port} # Admin 管理后台 UI 的地址
  293. filter:
  294. cors: true # 开启全局跨域过滤器
  295. serial-write-timestamp: false # 日期是否序列化为时间戳
  296. mbr-security:
  297. paramSignRequired: false # 是否签名参数
  298. headerTenantRequired: false # 是否需要多租户
  299. setting:
  300. securityStrategy: token
  301. tokenHeaderKey: Authorization
  302. tokenValPrefix: 'Bearer '
  303. loginProcessor: filter
  304. useCaptcha: false
  305. captchaSize: 5
  306. captchaDuration: 5
  307. duration: 30
  308. encryptPassword: true
  309. privateKey: MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBANHtrETGQh9E2ZeFv2DqS3IOJGL35y8e6nzJnrl2lkVkY5niZTpT/RGrgDv5tBHJbbsYu0lw7vbBmpIS2+D7hKGhpqnmXcd91HYajsbvvxbnuX1i9mbCclce2AzypLfWbi4hSIiFXKgdy6OX9+IX+bJ5UBkLkyYVHGdWfbWvLutLAgMBAAECgYBi2QHzxFLgPGAky9KIhOoPg384prhR5MHPDnTRqXgqppGLpSG7LE8OYe3Yz8QtV+Z2YbfWZfnvcMwimgS01Fnnk0T6xCjz2IJRjTzISElWyiGslFWm0qjFrVEydDucM0kw3jBmw4roeVGGKkmbR0C2QjB4czdERqihZZxOgu3+kQJBAOyCViBiJcOhzzEzM9SuHcsYoi5Mwia93fzoroojNPWShmIx/PSvE3LxYzZszFBpy3uzTN1hMslu3fQg9s1MKdkCQQDjOo9HKLxnHTT0tB6h1aySJqt8+8dD9rQ7J8HYrD9idcPXVZ5WyM6x0i8YGj2u+TR1KDx/9fnZlAjwOy4JKYPDAkAVonqUbcX8llGos4FbRC4vhOpZB+Z+usGSwAovUrcme6fVVbNJArbpvdEQinVKKdNWVnmCisClkoG1MkrBTuVJAkAlxYA3pe/bfCFnY+GLqUcsbD0pY3j2NTY0dyFj8Q4AQe8yBktxxaOGL5gge4wxX792kh+sbakAn/j0ZgH7B+mdAkAIN2hkHJPpgc6L0111TdtdH/lvgxmJ9QgOd1wb5pHL2mtUUvXK3SkOF08agg3kv8I9qmDOcjs7A6zEjAV7Dijn
  310. staticCustomLocations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/