application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.0.0
  7. # 版权年份
  8. copyrightYear: 2019
  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: 8080
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. undertow:
  25. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  26. io-threads: 8
  27. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  28. worker-threads: 256
  29. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  30. # 每块buffer的空间大小,越小的空间被利用越充分
  31. buffer-size: 512
  32. # 是否分配的直接内存
  33. direct-buffers: true
  34. # 日志配置
  35. logging:
  36. level:
  37. com.ruoyi: debug
  38. org.springframework: warn
  39. # Spring配置
  40. spring:
  41. # 资源信息
  42. messages:
  43. # 国际化资源文件路径
  44. basename: i18n/messages
  45. profiles:
  46. active: dev
  47. # 文件上传
  48. servlet:
  49. multipart:
  50. # 单个文件大小
  51. max-file-size: 10MB
  52. # 设置总上传的文件大小
  53. max-request-size: 20MB
  54. # 服务模块
  55. devtools:
  56. restart:
  57. # 热部署开关
  58. enabled: true
  59. # token配置
  60. token:
  61. # 令牌自定义标识
  62. header: Authorization
  63. # 令牌密钥
  64. secret: abcdefghijklmnopqrstuvwxyz
  65. # 令牌有效期(默认30分钟)
  66. expireTime: 30
  67. # MyBatis配置
  68. mybatis-plus:
  69. mapper-locations: classpath*:mapper/**/*Mapper.xml
  70. #实体扫描,多个package用逗号或者分号分隔
  71. typeAliasesPackage: com.ruoyi.**.domain
  72. configuration:
  73. map-underscore-to-camel-case: true
  74. cache-enabled: true
  75. global-config:
  76. banner: false
  77. #刷新mapper 调试神器
  78. refresh: true
  79. db-config:
  80. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  81. id-type: auto
  82. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  83. field-strategy: not_empty
  84. #驼峰下划线转换
  85. db-column-underline: true
  86. #数据库大写下划线转换
  87. #capital-mode: true
  88. #序列接口实现类配置
  89. #key-generator: com.baomidou.springboot.xxx
  90. #逻辑删除配置
  91. logic-delete-value: 1
  92. logic-not-delete-value: 0
  93. #数据库类型
  94. db-type: mysql
  95. #自定义SQL注入器
  96. #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  97. #自定义填充策略接口实现
  98. #meta-object-handler: com.baomidou.springboot.xxx
  99. # PageHelper分页插件
  100. pagehelper:
  101. helperDialect: mysql
  102. reasonable: true
  103. supportMethodsArguments: true
  104. params: count=countSql
  105. # Swagger配置
  106. swagger:
  107. # 是否开启swagger
  108. enabled: true
  109. # 请求前缀
  110. pathMapping: /dev-api
  111. # 防止XSS攻击
  112. xss:
  113. # 过滤开关
  114. enabled: true
  115. # 排除链接(多个用逗号分隔)
  116. excludes: /system/notice/*
  117. # 匹配链接
  118. urlPatterns: /system/*,/monitor/*,/tool/*