知道了,我之前就加上了@ResponseBody 了
throw new BusinessException(EmBusinessError.USER_NOT_EXIST); 你应该没写 throw 吧
我知道了,
HttpServletRequest request
不是httprequest
thown 呀这就可以了
import org.springframework.http.HttpStatus;
解决了
定义common的全局异常类,打通到各个系统runtime内使用
你可能是Service层判空出现问题了。