@@ -0,0 +1,612 @@
+package cn.gyyx.framework.exception;%0A%0Aimport cn.gyyx.framework.util.ExceptionUtil;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.ExceptionHandler;%0A%0A/**%0A * springmvc%E8%87%AA%E5%AE%9A%E4%B9%89%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86%E7%B1%BB%0A * @author%0A * @create 2017-11-08 14:22%0A **/%0A@Controller%0Apublic class CustomMappingExceptionResolver %7B%0A%0A    private static final Logger LOG = LoggerFactory.getLogger(CustomMappingExceptionResolver.class);%0A%0A    @ExceptionHandler%0A    public void exp(Exception ex) %7B%0A        LOG.error(ExceptionUtil.getStackTraceAsString(ex));%0A    %7D%0A%7D%0A

add exception resolver