application.yml 3.3 KB

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