application-dev.yml 3.1 KB

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