application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.4
  7. # 版权年份
  8. copyrightYear: 2022
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyicn.ezhizaoPath,Linux配置 /home/ruoyi/uploadPath)
  12. # 获取ip地址开关
  13. addressEnabled: false
  14. # 验证码类型 math 数组计算 char 字符验证
  15. captchaType: math
  16. # 开发环境配置
  17. server:
  18. # 服务器的HTTP端口,默认为8080
  19. port: 18044
  20. servlet:
  21. # 应用的访问路径
  22. context-path: /
  23. tomcat:
  24. # tomcat的URI编码
  25. uri-encoding: UTF-8
  26. # 连接数满后的排队数,默认为100
  27. accept-count: 1000
  28. threads:
  29. # tomcat最大线程数,默认为200
  30. max: 800
  31. # Tomcat启动初始化的线程数,默认值10
  32. min-spare: 100
  33. # 日志配置
  34. logging:
  35. level:
  36. cn.ezhizao: debug
  37. org.springframework: warn
  38. # 用户配置
  39. user:
  40. password:
  41. # 密码最大错误次数
  42. maxRetryCount: 5
  43. # 密码锁定时间(默认10分钟)
  44. lockTime: 10
  45. # Spring配置
  46. spring:
  47. cloud:
  48. nacos:
  49. discovery:
  50. server-addr: 120.46.59.90:19848 # Nacos服务器地址
  51. namespace: ezhizao_yzbh # 命名空间
  52. #config:
  53. #server-addr: 114.116.195.82:8848 # Nacos服务器地址
  54. #namespace: ezhizao_template_zs # 命名空间
  55. application:
  56. name: ezhizao-yzbh-financial # 配置微服务名(服务名不能用下划线)
  57. # 解决中文文件名下载404问题
  58. mvc:
  59. pathmatch:
  60. matching-strategy: ant-path-matcher
  61. # 资源信息
  62. messages:
  63. # 国际化资源文件路径
  64. basename: i18n/messages
  65. profiles:
  66. active: test
  67. # 文件上传
  68. servlet:
  69. multipart:
  70. # 单个文件大小
  71. max-file-size: 50MB
  72. # 设置总上传的文件大小
  73. max-request-size: 100MB
  74. # 服务模块
  75. devtools:
  76. restart:
  77. # 热部署开关
  78. enabled: true
  79. # token配置
  80. token:
  81. # 令牌自定义标识
  82. header: Authorization
  83. # 令牌密钥
  84. secret: abcdefghijklmnopqrstuvwxyz
  85. # 令牌有效期(默认30分钟)
  86. expireTime: 43200
  87. #mybaits-plus 配置
  88. mybatis-plus:
  89. mapper-locations: classpath*:mybatis/**/*Mapper.xml
  90. type-aliases-package: cn.ezhizao.project.**.domain
  91. configuration:
  92. cache-enabled: true
  93. map-underscore-to-camel-case: true
  94. #配置sql 打印到控制台
  95. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  96. # PageHelper分页插件
  97. pagehelper:
  98. helperDialect: mysql
  99. supportMethodsArguments: true
  100. params: count=countSql
  101. # Swagger配置
  102. swagger:
  103. # 是否开启swagger
  104. enabled: true
  105. # 请求前缀
  106. pathMapping: /dev-api
  107. # 防止XSS攻击
  108. xss:
  109. # 过滤开关
  110. enabled: true
  111. # 排除链接(多个用逗号分隔)
  112. excludes: /system/notice
  113. # 匹配链接
  114. urlPatterns: /system/*,/monitor/*,/tool/*
  115. # 代码生成
  116. gen:
  117. # 作者
  118. author: ruoyi
  119. # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
  120. packageName: cn.ezhizao.project.business
  121. # 自动去除表前缀,默认是true
  122. autoRemovePre: false
  123. # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
  124. tablePrefix: biz_