application.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.1
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: D:/ruoyi/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8008
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # tomcat最大线程数,默认为200
  28. max-threads: 800
  29. # Tomcat启动初始化的线程数,默认值25
  30. min-spare-threads: 30
  31. # Spring配置
  32. spring:
  33. # 资源信息
  34. messages:
  35. # 国际化资源文件路径
  36. basename: i18n/messages
  37. profiles:
  38. active: prod
  39. # 文件上传
  40. servlet:
  41. multipart:
  42. # 单个文件大小
  43. max-file-size: 10MB
  44. # 设置总上传的文件大小
  45. max-request-size: 20MB
  46. # 服务模块
  47. devtools:
  48. restart:
  49. # 热部署开关
  50. enabled: true
  51. # redis 配置
  52. # token配置
  53. token:
  54. # 令牌自定义标识
  55. header: Authorization
  56. # 令牌密钥
  57. secret: abcdefghijklmnopqrstuvwxyz
  58. # 令牌有效期(默认30分钟)
  59. expireTime: 3000
  60. # MyBatis配置
  61. #mybatis
  62. mybatis-plus:
  63. mapper-locations: classpath*:/mapper/**/*.xml,classpath:/META-INF/modeler-mybatis-mappings/*.xml
  64. #实体扫描,多个package用逗号或者分号分隔
  65. typeAliasesPackage: com.ruoyi.**.entity,com.ruoyi.**.domain
  66. global-config:
  67. #数据库相关配置
  68. db-config:
  69. #主键类型
  70. id-type: ASSIGN_ID
  71. banner: false
  72. #原生配置
  73. configuration:
  74. map-underscore-to-camel-case: true
  75. cache-enabled: false
  76. call-setters-on-nulls: true
  77. jdbc-type-for-null: 'null'
  78. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启sql日志
  79. configuration-properties:
  80. prefix:
  81. blobType: BLOB
  82. boolValue: TRUE
  83. #mybatis:
  84. # # 搜索指定包别名
  85. # typeAliasesPackage: com.ruoyi.**.domain
  86. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  87. ## configLocation: classpath:mybatis/mybatis-config.xml
  88. # PageHelper分页插件
  89. pagehelper:
  90. helperDialect: mysql
  91. supportMethodsArguments: true
  92. params: count=countSql
  93. # Swagger配置
  94. swagger:
  95. # 是否开启swagger
  96. enabled: true
  97. # 请求前缀
  98. pathMapping: /dev-api
  99. # 防止XSS攻击
  100. xss:
  101. # 过滤开关
  102. enabled: true
  103. # 排除链接(多个用逗号分隔)
  104. excludes: /system/notice
  105. # 匹配链接
  106. urlPatterns: /system/*,/monitor/*,/tool/*