application-dev.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: D:/home
  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. #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://localhost:3306/ceshidba?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC&rewriteBatchedStatements=true&useServerPrepStmts=true
  34. mysql-user: root
  35. mysql-pwd: root
  36. # 开发环境配置
  37. server:
  38. # 服务器的HTTP端口,默认为80
  39. port: 80
  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: D:/home/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: dev-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. suishenbang: https://suishenbangtest.nipponpaint.com.cn/oneportal
  97. mail:
  98. #邮件服务器地址
  99. host: mail.dgtis.com
  100. #端口号
  101. port: 25
  102. #发送者邮箱地址
  103. username: dgtmail@dgtis.com
  104. #邮箱的授权码
  105. password: DGT.1111
  106. #默认编码格式
  107. default-encoding: UTF-8
  108. properties:
  109. mail:
  110. #启动debug调试
  111. debug: true
  112. smtp:
  113. socketFactory:
  114. #SSL连接配置
  115. class: javax.net.ssl.SSLSocketFactory
  116. # MyBatis
  117. mybatis:
  118. # 搜索指定包别名
  119. typeAliasesPackage: com.dgtly.**.domain
  120. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  121. mapperLocations: classpath*:mapper/**/*Mapper.xml
  122. # 加载全局的配置文件
  123. configLocation: classpath:mybatis/mybatis-config.xml
  124. # PageHelper分页插件
  125. pagehelper:
  126. helperDialect: mysql
  127. reasonable: true
  128. supportMethodsArguments: true
  129. params: count=countSql
  130. # Shiro
  131. shiro:
  132. user:
  133. # 登录地址
  134. loginUrl: /login
  135. # 权限认证失败地址
  136. unauthorizedUrl: /unauth
  137. # 首页地址
  138. indexUrl: /index
  139. # 验证码开关
  140. captchaEnabled: true
  141. # 验证码类型 math 数组计算 char 字符
  142. captchaType: math
  143. cookie:
  144. # 设置Cookie的域名 默认空,即当前访问的域名
  145. domain:
  146. # 设置cookie的有效访问路径
  147. path: /
  148. # 设置HttpOnly属性
  149. httpOnly: true
  150. # 设置Cookie的过期时间,天为单位
  151. maxAge: 30
  152. session:
  153. # Session超时时间,-1代表永不过期(默认30分钟)
  154. expireTime: 30
  155. # 同步session到数据库的周期(默认1分钟)
  156. dbSyncPeriod: 1
  157. # 相隔多久检查一次session的有效性,默认就是10分钟
  158. validationInterval: 10
  159. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  160. maxSession: -1
  161. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  162. kickoutAfter: false
  163. # 防止XSS攻击
  164. xss:
  165. # 过滤开关
  166. enabled: true
  167. # 排除链接(多个用逗号分隔)
  168. excludes: /system/notice/*,/system/config/*
  169. # 匹配链接
  170. urlPatterns: /system/*,/monitor/*,/tool/*