application-dev.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. # 日志配置
  51. logging:
  52. level:
  53. com.dgtly: debug
  54. org.springframework: warn
  55. path: D:/home/logs/
  56. # 用户配置
  57. user:
  58. password:
  59. # 密码错误{maxRetryCount}次锁定10分钟
  60. maxRetryCount: 5
  61. # Spring配置
  62. spring:
  63. # 模板引擎
  64. thymeleaf:
  65. mode: HTML
  66. encoding: utf-8
  67. # 禁用缓存
  68. cache: false
  69. # 资源信息
  70. messages:
  71. # 国际化资源文件路径
  72. basename: static/i18n/messages
  73. jackson:
  74. time-zone: GMT+8
  75. date-format: yyyy-MM-dd HH:mm:ss
  76. profiles:
  77. include: dev-druid
  78. # 文件上传
  79. servlet:
  80. multipart:
  81. # 单个文件大小
  82. max-file-size: 10MB
  83. # 设置总上传的文件大小
  84. max-request-size: 20MB
  85. # 服务模块
  86. devtools:
  87. restart:
  88. # 热部署开关
  89. enabled: true
  90. # MyBatis
  91. mybatis:
  92. # 搜索指定包别名
  93. typeAliasesPackage: com.dgtly.**.domain
  94. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  95. mapperLocations: classpath*:mapper/**/*Mapper.xml
  96. # 加载全局的配置文件
  97. configLocation: classpath:mybatis/mybatis-config.xml
  98. # PageHelper分页插件
  99. pagehelper:
  100. helperDialect: mysql
  101. reasonable: true
  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. session:
  127. # Session超时时间,-1代表永不过期(默认30分钟)
  128. expireTime: 30
  129. # 同步session到数据库的周期(默认1分钟)
  130. dbSyncPeriod: 1
  131. # 相隔多久检查一次session的有效性,默认就是10分钟
  132. validationInterval: 10
  133. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  134. maxSession: -1
  135. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  136. kickoutAfter: false
  137. # 防止XSS攻击
  138. xss:
  139. # 过滤开关
  140. enabled: true
  141. # 排除链接(多个用逗号分隔)
  142. excludes: /system/notice/*,/system/config/*
  143. # 匹配链接
  144. urlPatterns: /system/*,/monitor/*,/tool/*