Pu Zhibing
2025-02-19 8f45afced0c6a4085560c62dbd58e6ef0f4cecf4
ruoyi-admin/src/main/resources/application.yml
@@ -3,9 +3,9 @@
  # 名称
  name: RuoYi
  # 版本
  version: 4.8.0
  version: 4.7.9
  # 版权年份
  copyrightYear: 2025
  copyrightYear: 2024
  # 实例演示开关
  demoEnabled: true
  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
@@ -16,7 +16,7 @@
# 开发环境配置
server:
  # 服务器的HTTP端口,默认为80
  port: 80
  port: 3000
  servlet:
    # 应用的访问路径
    context-path: /
@@ -45,6 +45,11 @@
# Spring配置
spring:
  application:
    name: ruoyi
  # 循环依赖
  main:
    allow-circular-references: true
  # 模板引擎
  thymeleaf:
    mode: HTML
@@ -72,15 +77,13 @@
    restart:
      # 热部署开关
      enabled: true
mybatis-plus:
  type-aliases-package: com.ruoyi.**.domain
  mapper-locations: classpath*:mapper/**/**.xml
# MyBatis
mybatis:
  # 搜索指定包别名
  typeAliasesPackage: com.ruoyi.**.domain
  # 配置mapper的扫描,找到所有的mapper.xml映射文件
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 加载全局的配置文件
  configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
@@ -126,6 +129,7 @@
  rememberMe:
    # 是否开启记住我
    enabled: true
# 防止XSS攻击
xss:
@@ -140,3 +144,18 @@
swagger:
  # 是否开启swagger
  enabled: true
## redis
---
spring:
  redis:
    database: 0
    host: 127.0.0.1
    port: 6379
    password: 123456
    jedis:
      pool:
        max-active: 20
        max-idle: 20
        max-wait: 60s
        min-idle: 5