上传报错修复
员工账号登录修改
This commit is contained in:
@@ -12,6 +12,9 @@ import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.multipart.support.StandardMultipartHttpServletRequest;
|
||||
|
||||
|
||||
/**
|
||||
@@ -39,6 +42,8 @@ public class ControllerAspect {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (args[i] instanceof HttpServletRequest) {
|
||||
args[i] = null;
|
||||
}else if (args[i] instanceof MultipartFile) {
|
||||
args[i] = "上传图片";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user