!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: level:
com.ruoyi: @logging.level@ com.ruoyi: @logging.level@
org.springframework: warn org.springframework: warn
config: classpath:logback.xml config: classpath:logback-plus.xml
# 用户配置 # 用户配置
user: user:

View File

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

View File

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

View File

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