application-prod.yml 4.8 KB

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