merge
This commit is contained in:
@@ -42,8 +42,7 @@ public class GlobalExceptionHandler {
|
||||
// 返回给页面200状态码
|
||||
@ResponseStatus(value = HttpStatus.OK)
|
||||
@ResponseBody
|
||||
public JSONObject handlerGuideException(HttpServletRequest request,
|
||||
Exception ex) {
|
||||
public JSONObject handlerGuideException(HttpServletRequest request, Exception ex) {
|
||||
logger.error(ex.getMessage());
|
||||
return JSONObjResult.toJSONObj(ex.getMessage());
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import java.lang.reflect.Method;
|
||||
@Component
|
||||
public class WebLogAspect {
|
||||
private final Logger logger = LoggerFactory.getLogger(WebLogAspect.class);
|
||||
ThreadLocal<Long> startTime = new ThreadLocal<>();
|
||||
private ThreadLocal<Long> startTime = new ThreadLocal<>();
|
||||
|
||||
@Pointcut("within(com.xwbing.controller..*) && @annotation(logInfo)")
|
||||
public void pointCutWithMsg(LogInfo logInfo) {
|
||||
|
||||
Reference in New Issue
Block a user