application-dev.yml 3.3 KB

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