!336 合并 功能

Merge pull request !336 from 疯狂的狮子Li/main
This commit is contained in:
疯狂的狮子Li 2023-04-11 14:41:13 +00:00 committed by Gitee
commit d8b264a13d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
7 changed files with 8 additions and 2 deletions

View File

@ -51,7 +51,7 @@ logging:
level:
com.ruoyi: @logging.level@
org.springframework: warn
config: classpath:logback.xml
config: classpath:logback-plus.xml
# 用户配置
user:

View File

@ -6,6 +6,9 @@ spring:
profiles:
active: @profiles.active@
logging:
config: classpath:logback-plus.xml
--- # 监控中心服务端配置
spring:
security:

View File

@ -16,6 +16,9 @@ spring:
resources:
static-locations: classpath:/static/
logging:
config: classpath:logback-plus.xml
--- # mybatis 配置
mybatis:
mapper-locations: classpath:/mybatis-mapper/*Mapper.xml

View File

@ -73,7 +73,7 @@ public class CreateAndUpdateMetaObjectHandler implements MetaObjectHandler {
log.warn("自动注入警告 => 用户未登录");
return null;
}
return loginUser.getUsername();
return ObjectUtil.isNotNull(loginUser) ? loginUser.getUsername() : null;
}
}