This commit is contained in:
xiangwb
2017-11-07 17:40:25 +08:00
parent 781c0462c3
commit ce525ca7fb
3 changed files with 3 additions and 4 deletions
@@ -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) {