application.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 4.7.4
  7. # 版权年份
  8. copyrightYear: 2022
  9. # 实例演示开关
  10. demoEnabled: false
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: D:/ruoyi/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 测试地址
  16. testHttps: https://www2.laikuaidian.cn
  17. #生产地址
  18. prodHttps: https://hezuo.cyc-fund.com.cn
  19. # 请求订单信息的url
  20. processUrl: /guaranteeJSONCtrl/JSONQuerybidder.do
  21. # www审核通知接口url
  22. checkUrl: /guaranteeJSONCtrl/JSONNotifications.do
  23. # www支付回调接口通知
  24. payUrl: /guaranteeJSONCtrl/JSONPayInfoInterface.do
  25. # www承保回调接口通知
  26. coverUrl: /guaranteeJSONCtrl/JSONCBInfoInterface.do
  27. #填充接口url
  28. templateUrl: https://www2.laikuaidian.cn/fdd/extsign.do?processId=
  29. #电子发票接口
  30. invoiceUrl: /guaranteeJSONCtrl/JSONFPInfoInterface.do
  31. # 开发环境配置
  32. server:
  33. # 服务器的HTTP端口,默认为80
  34. port: 89
  35. servlet:
  36. # 应用的访问路径
  37. context-path: /
  38. tomcat:
  39. # tomcat的URI编码
  40. uri-encoding: UTF-8
  41. # 连接数满后的排队数,默认为100
  42. accept-count: 1000
  43. threads:
  44. # tomcat最大线程数,默认为200
  45. max: 800
  46. # Tomcat启动初始化的线程数,默认值10
  47. min-spare: 100
  48. # 日志配置
  49. logging:
  50. level:
  51. com.ruoyi: debug
  52. org.springframework: warn
  53. # 用户配置
  54. user:
  55. password:
  56. # 密码错误{maxRetryCount}次锁定10分钟
  57. maxRetryCount: 5
  58. # Spring配置
  59. spring:
  60. # 模板引擎
  61. thymeleaf:
  62. mode: HTML
  63. encoding: utf-8
  64. # 禁用缓存
  65. cache: false
  66. # 资源信息
  67. messages:
  68. # 国际化资源文件路径
  69. basename: static/i18n/messages
  70. jackson:
  71. time-zone: GMT+8
  72. date-format: yyyy-MM-dd HH:mm:ss
  73. profiles:
  74. active: druid
  75. # 文件上传
  76. servlet:
  77. multipart:
  78. # 单个文件大小
  79. max-file-size: 10MB
  80. # 设置总上传的文件大小
  81. max-request-size: 20MB
  82. # 服务模块
  83. devtools:
  84. restart:
  85. # 热部署开关
  86. enabled: true
  87. # MyBatis
  88. mybatis:
  89. # 搜索指定包别名
  90. typeAliasesPackage: com.ruoyi.**.domain
  91. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  92. mapperLocations: classpath*:mapper/**/*Mapper.xml
  93. # 加载全局的配置文件
  94. configLocation: classpath:mybatis/mybatis-config.xml
  95. # Mybatis-plus
  96. mybatis-plus:
  97. mapper-locations: classpath*:mapper/**/*Mapper.xml
  98. type-aliases-package: com.ruoyi.**.domain
  99. # PageHelper分页插件
  100. pagehelper:
  101. helperDialect: mysql
  102. supportMethodsArguments: true
  103. params: count=countSql
  104. # Shiro
  105. shiro:
  106. user:
  107. # 登录地址
  108. loginUrl: /login
  109. # 权限认证失败地址
  110. unauthorizedUrl: /unauth
  111. # 首页地址
  112. indexUrl: /index
  113. # 验证码开关
  114. captchaEnabled: true
  115. # 验证码类型 math 数组计算 char 字符
  116. captchaType: math
  117. cookie:
  118. # 设置Cookie的域名 默认空,即当前访问的域名
  119. domain:
  120. # 设置cookie的有效访问路径
  121. path: /
  122. # 设置HttpOnly属性
  123. httpOnly: true
  124. # 设置Cookie的过期时间,天为单位
  125. maxAge: 30
  126. # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效)
  127. cipherKey:
  128. session:
  129. # Session超时时间,-1代表永不过期(默认30分钟)
  130. expireTime: 30
  131. # 同步session到数据库的周期(默认1分钟)
  132. dbSyncPeriod: 1
  133. # 相隔多久检查一次session的有效性,默认就是10分钟
  134. validationInterval: 10
  135. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  136. maxSession: -1
  137. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  138. kickoutAfter: false
  139. rememberMe:
  140. # 是否开启记住我
  141. enabled: true
  142. # 防止XSS攻击
  143. xss:
  144. # 过滤开关
  145. enabled: true
  146. # 排除链接(多个用逗号分隔)
  147. excludes: /system/notice/*
  148. # 匹配链接
  149. urlPatterns: /system/*,/monitor/*,/tool/*
  150. # Swagger配置
  151. swagger:
  152. # 是否开启swagger
  153. enabled: true