1
zj
2025-08-21 01bd03652fef2399c2acfb1930d044b106393f85
ruoyi-admin/src/main/resources/application.yml
@@ -30,7 +30,9 @@
      max: 800
      # Tomcat启动初始化的线程数,默认值10
      min-spare: 100
    multipart:
      max-file-size: 10MB
      max-request-size: 10MB
# 日志配置
logging:
  level:
@@ -96,16 +98,30 @@
  secret: abcdefghijklmnopqrstuvwxyz
  # 令牌有效期(默认30分钟)
  expireTime: 30
# MyBatis配置
# 原有 MyBatis 配置保持不变
mybatis:
  # 搜索指定包别名
  typeAliasesPackage: com.ruoyi.**.domain
  # 配置mapper的扫描,找到所有的mapper.xml映射文件
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 加载全局的配置文件
  configLocation: classpath:mybatis/mybatis-config.xml
# 新增 MyBatis-Plus 配置
mybatis-plus:
  # 可以指向新的目录,避免与原有XML冲突
  mapper-locations: classpath*:mapper/**/*Mapper.xml
  type-aliases-package: com.ruoyi.**.domain
  global-config:
    db-config:
      id-type: AUTO
      logic-delete-value: 2  # 若依默认逻辑删除值是2
      logic-not-delete-value: 0
      # 字段策略:0:忽略判断,1:非NULL判断,2:非空判断
      insert-strategy: not_null
      update-strategy: not_null
  configuration:
    # 保持与原有配置一致
    map-underscore-to-camel-case: true
    # 开启SQL日志
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# PageHelper分页插件
pagehelper:
  helperDialect: mysql
@@ -127,3 +143,13 @@
  excludes: /system/notice
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
file:
  upload-dir: /www/wwwroot/img
  upload-prefix: https://img.freessl.help
# 网易云信配置
netease:
  im:
    api-head-portrait-url: https://open.yunxinapi.com