application.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 2.2.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: true
  15. # 开发环境配置
  16. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8080
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # tomcat最大线程数,默认为200
  26. max-threads: 800
  27. # Tomcat启动初始化的线程数,默认值25
  28. min-spare-threads: 30
  29. version: 2.2.0
  30. # 日志配置
  31. logging:
  32. level:
  33. com.ruoyi: debug
  34. org.springframework: warn
  35. # Spring配置
  36. spring:
  37. # 资源信息
  38. messages:
  39. # 国际化资源文件路径
  40. basename: i18n/messages
  41. profiles:
  42. active: dev
  43. # 文件上传
  44. servlet:
  45. multipart:
  46. # 单个文件大小
  47. max-file-size: 10MB
  48. # 设置总上传的文件大小
  49. max-request-size: 20MB
  50. # 服务模块
  51. devtools:
  52. restart:
  53. # 热部署开关
  54. enabled: true
  55. # token配置
  56. token:
  57. # 令牌自定义标识
  58. header: Authorization
  59. # 令牌秘钥
  60. secret: abcdefghijklmnopqrstuvwxyz
  61. # 令牌有效期(默认30分钟)
  62. expireTime: 30
  63. ## MyBatis配置
  64. #mybatis:
  65. # # 搜索指定包别名
  66. # typeAliasesPackage: com.ruoyi.project.**.domain
  67. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  68. # mapperLocations: classpath*:mybatis/**/*Mapper.xml
  69. # # 加载全局的配置文件
  70. # configLocation: classpath:mybatis/mybatis-config.xml
  71. # MyBatis配置
  72. mybatis-plus:
  73. mapper-locations: classpath*:mybatis/**/*Mapper.xml
  74. #实体扫描,多个package用逗号或者分号分隔
  75. typeAliasesPackage: com.ruoyi.project
  76. configuration:
  77. map-underscore-to-camel-case: true
  78. cache-enabled: true
  79. global-config:
  80. banner: false
  81. #刷新mapper 调试神器
  82. refresh: true
  83. db-config:
  84. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  85. id-type: auto
  86. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  87. field-strategy: not_empty
  88. #驼峰下划线转换
  89. db-column-underline: true
  90. #数据库大写下划线转换
  91. #capital-mode: true
  92. #序列接口实现类配置
  93. #key-generator: com.baomidou.springboot.xxx
  94. #逻辑删除配置
  95. logic-delete-value: 1
  96. logic-not-delete-value: 0
  97. #数据库类型
  98. db-type: mysql
  99. #自定义SQL注入器
  100. #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  101. #自定义填充策略接口实现
  102. #meta-object-handler: com.baomidou.springboot.xxx
  103. # PageHelper分页插件
  104. pagehelper:
  105. helperDialect: mysql
  106. reasonable: true
  107. supportMethodsArguments: true
  108. params: count=countSql
  109. # 防止XSS攻击
  110. xss:
  111. # 过滤开关
  112. enabled: true
  113. # 排除链接(多个用逗号分隔)
  114. excludes: /system/notice/*
  115. # 匹配链接
  116. urlPatterns: /system/*,/monitor/*,/tool/*
  117. # 代码生成
  118. gen:
  119. # 作者
  120. author: ruoyi
  121. # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  122. packageName: com.ruoyi.project.system
  123. # 自动去除表前缀,默认是true
  124. autoRemovePre: false
  125. # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
  126. tablePrefix: sys_