application-test.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: suishenbang-oneportal
  5. # 版本
  6. version: 4.0.0
  7. # 版权年份
  8. copyrightYear: 2020
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /home/suishenbang/file
  13. # 获取ip地址开关
  14. addressEnabled: true
  15. cloudPath: http://10.32.2.212:8000/
  16. #清空订单缓存
  17. clearCachePath: http://ss.libang.dgtis.com/order/meta-hana-sales-order/clearCache
  18. orderGetDataHook: http://ss.libang.dgtis.com/order/meta-hana-sales-order/orderGetDataHook
  19. deliverGetDataHook: http://ss.libang.dgtis.com/order/meta-hana-sales-order/deliverGetDataHook
  20. #经销商微信接口相关配置
  21. customer:
  22. appid: ap4f8e6a38b6142187
  23. appsecret: d5c234b37e9f9ecb47a71ba6a788bd3e
  24. #正式域名 https://ac.nipponpaint.com.cn
  25. domain: https://ac.nipponpaint.com.cn
  26. # 开发环境配置
  27. server:
  28. # 服务器的HTTP端口,默认为80
  29. port: 10000
  30. servlet:
  31. # 应用的访问路径
  32. context-path: /oneportal
  33. tomcat:
  34. # tomcat的URI编码
  35. uri-encoding: UTF-8
  36. # tomcat最大线程数,默认为200
  37. max-threads: 800
  38. # Tomcat启动初始化的线程数,默认值25
  39. min-spare-threads: 30
  40. basedir: /tmp/tomcat
  41. # 日志配置
  42. logging:
  43. level:
  44. com.dgtly: debug
  45. org.springframework: warn
  46. path: /home/suishenbang/logs/
  47. # 用户配置
  48. user:
  49. password:
  50. # 密码错误{maxRetryCount}次锁定10分钟
  51. maxRetryCount: 5
  52. # Spring配置
  53. spring:
  54. # 模板引擎
  55. thymeleaf:
  56. mode: HTML
  57. encoding: utf-8
  58. # 禁用缓存
  59. cache: false
  60. # 资源信息
  61. messages:
  62. # 国际化资源文件路径
  63. basename: static/i18n/messages
  64. jackson:
  65. time-zone: GMT+8
  66. date-format: yyyy-MM-dd HH:mm:ss
  67. profiles:
  68. include: test-druid
  69. tms:
  70. #TMS接口地址
  71. tmsUrl: https://lbtest.lutms.com/wuliu/apissbzt/ssb_update_authFile.do
  72. tmsToken: EZS2020
  73. mail:
  74. #邮件服务器地址
  75. host: mail.dgtis.com
  76. #端口号
  77. port: 25
  78. #发送者邮箱地址
  79. username: dgtmail@dgtis.com
  80. #邮箱的授权码
  81. password: DGT.1111
  82. #默认编码格式
  83. default-encoding: UTF-8
  84. properties:
  85. mail:
  86. #启动debug调试
  87. debug: true
  88. smtp:
  89. socketFactory:
  90. #SSL连接配置
  91. class: javax.net.ssl.SSLSocketFactory
  92. # 文件上传
  93. servlet:
  94. multipart:
  95. # 单个文件大小
  96. max-file-size: 10MB
  97. # 设置总上传的文件大小
  98. max-request-size: 20MB
  99. location: /data/upload_tmp
  100. # 服务模块
  101. devtools:
  102. restart:
  103. # 热部署开关
  104. enabled: true
  105. # MyBatis
  106. mybatis:
  107. # 搜索指定包别名
  108. typeAliasesPackage: com.dgtly.**.domain
  109. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  110. mapperLocations: classpath*:mapper/**/*Mapper.xml
  111. # 加载全局的配置文件
  112. configLocation: classpath:mybatis/mybatis-config.xml
  113. # PageHelper分页插件
  114. pagehelper:
  115. helperDialect: mysql
  116. reasonable: true
  117. supportMethodsArguments: true
  118. params: count=countSql
  119. # Shiro
  120. shiro:
  121. user:
  122. # 登录地址
  123. loginUrl: /login
  124. # 权限认证失败地址
  125. unauthorizedUrl: /unauth
  126. # 首页地址
  127. indexUrl: /index
  128. # 验证码开关
  129. captchaEnabled: true
  130. # 验证码类型 math 数组计算 char 字符
  131. captchaType: math
  132. cookie:
  133. # 设置Cookie的域名 默认空,即当前访问的域名
  134. domain:
  135. # 设置cookie的有效访问路径
  136. path: /
  137. # 设置HttpOnly属性
  138. httpOnly: true
  139. # 设置Cookie的过期时间,天为单位
  140. maxAge: 30
  141. session:
  142. # Session超时时间,-1代表永不过期(默认30分钟)
  143. expireTime: 30
  144. # 同步session到数据库的周期(默认1分钟)
  145. dbSyncPeriod: 1
  146. # 相隔多久检查一次session的有效性,默认就是10分钟
  147. validationInterval: 10
  148. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  149. maxSession: -1
  150. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  151. kickoutAfter: false
  152. # 防止XSS攻击
  153. xss:
  154. # 过滤开关
  155. enabled: true
  156. # 排除链接(多个用逗号分隔)
  157. excludes: /system/notice/*,/system/config/*
  158. # 匹配链接
  159. urlPatterns: /system/*,/monitor/*,/tool/*