yjzh-sq.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. # 项目相关配置
  2. ruoyi:
  3. # 版本
  4. version: ${ruoyi-vue-plus.version}
  5. # 版权年份
  6. copyrightYear: 2021
  7. # 实例演示开关
  8. demoEnabled: false
  9. # 获取ip地址开关
  10. addressEnabled: true
  11. # Spring配置
  12. spring:
  13. application:
  14. name: ${ruoyi.name}
  15. # 资源信息
  16. messages:
  17. # 国际化资源文件路径
  18. basename: i18n/messages
  19. # profiles:
  20. # active: dev
  21. # 文件上传
  22. servlet:
  23. multipart:
  24. # 单个文件大小
  25. max-file-size: 300MB
  26. # 设置总上传的文件大小
  27. max-request-size: 1024MB
  28. # 服务模块
  29. devtools:
  30. restart:
  31. # 热部署开关
  32. enabled: true
  33. # 与vue整合部署使用
  34. thymeleaf:
  35. # 将系统模板放置到最前面 否则会与 springboot-admin 页面冲突
  36. template-resolver-order: 1
  37. jackson:
  38. # 日期格式化
  39. date-format: yyyy-MM-dd HH:mm:ss
  40. serialization:
  41. # 格式化输出
  42. indent_output: true
  43. # 忽略无法转换的对象
  44. fail_on_empty_beans: false
  45. deserialization:
  46. # 允许对象忽略json中不存在的属性
  47. fail_on_unknown_properties: false
  48. captcha:
  49. # 页面 <参数设置> 可开启关闭 验证码校验
  50. # 验证码类型 math 数组计算 char 字符验证
  51. type: MATH
  52. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  53. category: CIRCLE
  54. # 数字验证码位数
  55. numberLength: 1
  56. # 字符验证码长度
  57. charLength: 4
  58. # 开发环境配置
  59. server:
  60. servlet:
  61. # 应用的访问路径
  62. context-path: /api
  63. # undertow 配置
  64. undertow:
  65. # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
  66. max-http-post-size: -1
  67. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  68. # 每块buffer的空间大小,越小的空间被利用越充分
  69. buffer-size: 512
  70. # 是否分配的直接内存
  71. direct-buffers: true
  72. threads:
  73. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  74. io: 8
  75. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  76. worker: 256
  77. # # tomcat 配置
  78. # tomcat:
  79. # # tomcat的URI编码
  80. # uri-encoding: UTF-8
  81. # # tomcat最大线程数,默认为200
  82. # max-threads: 500
  83. # # Tomcat启动初始化的线程数,默认值25
  84. # min-spare-threads: 30
  85. # 日志配置
  86. logging:
  87. level:
  88. # com.ruoyi: @logging.level@
  89. com.ruoyi: debug
  90. org.springframework: warn
  91. com.alibaba.nacos.client.config.impl: warn
  92. config: classpath:logback.xml
  93. # token配置
  94. token:
  95. # 令牌自定义标识
  96. header: Authorization
  97. # 令牌密钥
  98. secret: abcdefghijklmnopqrstuvwxyz
  99. # 令牌有效期(默认120分钟)
  100. expireTime: 120
  101. # 重复提交
  102. repeat-submit:
  103. # 全局间隔时间(毫秒)
  104. intervalTime: 1000
  105. # MyBatisPlus配置
  106. # https://baomidou.com/config/
  107. mybatis-plus:
  108. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
  109. # 例如 com.**.**.mapper
  110. mapperPackage: com.ruoyi.**.mapper
  111. # 对应的 XML 文件位置
  112. mapperLocations: classpath*:mapper/**/*Mapper.xml
  113. # 实体扫描,多个package用逗号或者分号分隔
  114. typeAliasesPackage: com.ruoyi.**.domain
  115. # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象
  116. #typeAliasesSuperType: Class<?>
  117. # 如果配置了该属性,SqlSessionFactoryBean 会把该包下面的类注册为对应的 TypeHandler
  118. #typeHandlersPackage: null
  119. # 如果配置了该属性,会将路径下的枚举类进行注入,让实体类字段能够简单快捷的使用枚举属性
  120. #typeEnumsPackage: null
  121. # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
  122. checkConfigLocation: false
  123. # 通过该属性可指定 MyBatis 的执行器,MyBatis 的执行器总共有三种:
  124. # SIMPLE:该执行器类型不做特殊的事情,为每个语句的执行创建一个新的预处理语句(PreparedStatement)
  125. # REUSE:该执行器类型会复用预处理语句(PreparedStatement)
  126. # BATCH:该执行器类型会批量执行所有的更新语句
  127. executorType: SIMPLE
  128. configuration:
  129. # 自动驼峰命名规则(camel case)映射
  130. # 如果您的数据库命名符合规则无需使用 @TableField 注解指定数据库字段名
  131. mapUnderscoreToCamelCase: true
  132. # 默认枚举处理类,如果配置了该属性,枚举将统一使用指定处理器进行处理
  133. # org.apache.ibatis.type.EnumTypeHandler : 存储枚举的名称
  134. # org.apache.ibatis.type.EnumOrdinalTypeHandler : 存储枚举的索引
  135. # com.baomidou.mybatisplus.extension.handlers.MybatisEnumTypeHandler : 枚举类需要实现IEnum接口或字段标记@EnumValue注解.
  136. defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler
  137. # 当设置为 true 的时候,懒加载的对象可能被任何懒属性全部加载,否则,每个属性都按需加载。需要和 lazyLoadingEnabled 一起使用。
  138. aggressiveLazyLoading: true
  139. # MyBatis 自动映射策略
  140. # NONE:不启用自动映射
  141. # PARTIAL:只对非嵌套的 resultMap 进行自动映射
  142. # FULL:对所有的 resultMap 都进行自动映射
  143. autoMappingBehavior: PARTIAL
  144. # MyBatis 自动映射时未知列或未知属性处理策
  145. # NONE:不做任何处理 (默认值)
  146. # WARNING:以日志的形式打印相关警告信息
  147. # FAILING:当作映射失败处理,并抛出异常和详细信息
  148. autoMappingUnknownColumnBehavior: NONE
  149. # Mybatis一级缓存,默认为 SESSION
  150. # SESSION session级别缓存,同一个session相同查询语句不会再次查询数据库
  151. # STATEMENT 关闭一级缓存
  152. localCacheScope: SESSION
  153. # 开启Mybatis二级缓存,默认为 true
  154. cacheEnabled: false
  155. # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
  156. # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
  157. # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
  158. logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  159. global-config:
  160. # 是否打印 Logo banner
  161. banner: false
  162. # 是否初始化 SqlRunner
  163. enableSqlRunner: false
  164. dbConfig:
  165. # 主键类型
  166. # AUTO 数据库ID自增
  167. # NONE 空
  168. # INPUT 用户输入ID
  169. # ASSIGN_ID 全局唯一ID
  170. # ASSIGN_UUID 全局唯一ID UUID
  171. idType: ASSIGN_ID
  172. # 表名前缀
  173. tablePrefix: null
  174. # 字段 format,例: %s,(对主键无效)
  175. columnFormat: null
  176. # 表名是否使用驼峰转下划线命名,只对表名生效
  177. tableUnderline: true
  178. # 大写命名,对表名和字段名均生效
  179. capitalMode: false
  180. # 全局的entity的逻辑删除字段属性名
  181. logicDeleteField: null
  182. # 逻辑已删除值
  183. logicDeleteValue: 1
  184. # 逻辑未删除值
  185. logicNotDeleteValue: 0
  186. # 字段验证策略之 insert,在 insert 的时候的字段验证策略
  187. # IGNORED 忽略判断
  188. # NOT_NULL 非NULL判断
  189. # NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断)
  190. # DEFAULT 默认的,一般只用于注解里
  191. # NEVER 不加入 SQL
  192. insertStrategy: NOT_NULL
  193. # 字段验证策略之 update,在 update 的时候的字段验证策略
  194. updateStrategy: NOT_NULL
  195. # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
  196. where-strategy: NOT_NULL
  197. # Swagger配置
  198. swagger:
  199. # 是否开启swagger
  200. enabled: true
  201. # 请求前缀
  202. pathMapping: /dev-api
  203. # 标题
  204. title: '标题:${ruoyi.name}后台管理系统_接口文档'
  205. # 描述
  206. description: ''
  207. # 版本
  208. version: '版本号: ${ruoyi-vue-plus.version}'
  209. # 作者信息
  210. contact:
  211. name: 新通智能
  212. email:
  213. url:
  214. # 防止XSS攻击
  215. xss:
  216. # 过滤开关
  217. enabled: true
  218. # 排除链接(多个用逗号分隔)
  219. excludes: /system/notice
  220. # 匹配链接
  221. urlPatterns: /system/*,/monitor/*,/tool/*
  222. # 全局线程池相关配置
  223. thread-pool:
  224. # 是否开启线程池
  225. enabled: false
  226. # 核心线程池大小
  227. corePoolSize: 8
  228. # 最大可创建的线程数
  229. maxPoolSize: 16
  230. # 队列最大长度
  231. queueCapacity: 128
  232. # 线程池维护线程所允许的空闲时间
  233. keepAliveSeconds: 300
  234. # 线程池对拒绝任务(无线程可用)的处理策略
  235. # CALLER_RUNS_POLICY 等待
  236. # DISCARD_OLDEST_POLICY 放弃最旧的
  237. # DISCARD_POLICY 丢弃
  238. # ABORT_POLICY 中止
  239. rejectedExecutionHandler: CALLER_RUNS_POLICY
  240. # feign 相关配置
  241. feign:
  242. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
  243. # 例如 com.**.**.feign
  244. package: com.ruoyi.**.feign
  245. # 开启压缩
  246. compression:
  247. request:
  248. enabled: true
  249. response:
  250. enabled: true
  251. okhttp:
  252. enabled: true
  253. circuitbreaker:
  254. enabled: true
  255. --- # redisson 缓存配置
  256. redisson:
  257. cacheGroup:
  258. # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置
  259. - groupId: redissonCacheMap
  260. # 组过期时间(脚本监控)
  261. ttl: 60000
  262. # 组最大空闲时间(脚本监控)
  263. maxIdleTime: 60000
  264. # 组最大长度
  265. maxSize: 0
  266. - groupId: testCache
  267. ttl: 1000
  268. maxIdleTime: 500
  269. --- # 分布式锁 lock4j 全局配置
  270. lock4j:
  271. # 获取分布式锁超时时间,默认为 3000 毫秒
  272. acquire-timeout: 3000
  273. # 分布式锁的超时时间,默认为 30 毫秒
  274. expire: 30000
  275. --- # Actuator 监控端点的配置项
  276. management:
  277. endpoints:
  278. web:
  279. # Actuator 提供的 API 接口的根目录。默认为 /actuator
  280. base-path: /actuator
  281. # exposure:
  282. # # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
  283. # # 生产环境不建议放开所有 根据项目需求放开即可
  284. # include: @endpoints.include@
  285. endpoint:
  286. logfile:
  287. external-file: ./logs/sys-console.log
  288. --- # 定时任务配置
  289. spring:
  290. quartz:
  291. scheduler-name: RuoyiScheduler
  292. startup-delay: 1s
  293. overwrite-existing-jobs: true
  294. auto-startup: true
  295. job-store-type: jdbc
  296. properties:
  297. org:
  298. quartz:
  299. # Scheduler 相关配置
  300. scheduler:
  301. instanceName: RuoyiScheduler
  302. instanceId: AUTO
  303. # 线程池相关配置
  304. threadPool:
  305. class: org.quartz.simpl.SimpleThreadPool
  306. threadCount: 20
  307. threadPriority: 5
  308. # JobStore 集群配置
  309. jobStore:
  310. class: org.quartz.impl.jdbcjobstore.JobStoreTX
  311. isClustered: true
  312. clusterCheckinInterval: 15000
  313. txIsolationLevelSerializable: true
  314. misfireThreshold: 60000
  315. tablePrefix: QRTZ_
  316. # sqlserver 启用
  317. # selectWithLockSQL: SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?