application-dev.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. clearCachePath: http://suishenbangtest.nipponpaint.com.cn/order/meta-hana-sales-order/clearCache
  17. #经销商微信接口相关配置
  18. customer:
  19. appid: ap4f8e6a38b6142187
  20. appsecret: d5c234b37e9f9ecb47a71ba6a788bd3e
  21. #正式域名 https://ac.nipponpaint.com.cn
  22. domain: https://ac.nipponpaint.com.cn
  23. # 开发环境配置
  24. server:
  25. # 服务器的HTTP端口,默认为80
  26. port: 80
  27. servlet:
  28. # 应用的访问路径
  29. context-path: /oneportal
  30. tomcat:
  31. # tomcat的URI编码
  32. uri-encoding: UTF-8
  33. # tomcat最大线程数,默认为200
  34. max-threads: 800
  35. # Tomcat启动初始化的线程数,默认值25
  36. min-spare-threads: 30
  37. # 日志配置
  38. logging:
  39. level:
  40. com.dgtly: debug
  41. org.springframework: warn
  42. path: D:/home/logs/
  43. # 用户配置
  44. user:
  45. password:
  46. # 密码错误{maxRetryCount}次锁定10分钟
  47. maxRetryCount: 5
  48. # Spring配置
  49. spring:
  50. # 模板引擎
  51. thymeleaf:
  52. mode: HTML
  53. encoding: utf-8
  54. # 禁用缓存
  55. cache: false
  56. # 资源信息
  57. messages:
  58. # 国际化资源文件路径
  59. basename: static/i18n/messages
  60. jackson:
  61. time-zone: GMT+8
  62. date-format: yyyy-MM-dd HH:mm:ss
  63. profiles:
  64. include: dev-druid
  65. # 文件上传
  66. servlet:
  67. multipart:
  68. # 单个文件大小
  69. max-file-size: 10MB
  70. # 设置总上传的文件大小
  71. max-request-size: 20MB
  72. # 服务模块
  73. devtools:
  74. restart:
  75. # 热部署开关
  76. enabled: true
  77. # MyBatis
  78. mybatis:
  79. # 搜索指定包别名
  80. typeAliasesPackage: com.dgtly.**.domain
  81. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  82. mapperLocations: classpath*:mapper/**/*Mapper.xml
  83. # 加载全局的配置文件
  84. configLocation: classpath:mybatis/mybatis-config.xml
  85. # PageHelper分页插件
  86. pagehelper:
  87. helperDialect: mysql
  88. reasonable: true
  89. supportMethodsArguments: true
  90. params: count=countSql
  91. # Shiro
  92. shiro:
  93. user:
  94. # 登录地址
  95. loginUrl: /login
  96. # 权限认证失败地址
  97. unauthorizedUrl: /unauth
  98. # 首页地址
  99. indexUrl: /index
  100. # 验证码开关
  101. captchaEnabled: true
  102. # 验证码类型 math 数组计算 char 字符
  103. captchaType: math
  104. cookie:
  105. # 设置Cookie的域名 默认空,即当前访问的域名
  106. domain:
  107. # 设置cookie的有效访问路径
  108. path: /
  109. # 设置HttpOnly属性
  110. httpOnly: true
  111. # 设置Cookie的过期时间,天为单位
  112. maxAge: 30
  113. session:
  114. # Session超时时间,-1代表永不过期(默认30分钟)
  115. expireTime: 30
  116. # 同步session到数据库的周期(默认1分钟)
  117. dbSyncPeriod: 1
  118. # 相隔多久检查一次session的有效性,默认就是10分钟
  119. validationInterval: 10
  120. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  121. maxSession: -1
  122. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  123. kickoutAfter: false
  124. # 防止XSS攻击
  125. xss:
  126. # 过滤开关
  127. enabled: true
  128. # 排除链接(多个用逗号分隔)
  129. excludes: /system/notice/*,/system/config/*
  130. # 匹配链接
  131. urlPatterns: /system/*,/monitor/*,/tool/*