-
1 votesanswersviews
使用@ExceptionHandler根据请求动态返回HTTP状态代码
我想根据响应对象错误动态返回HTTPStatus代码,如400,400,404等 . 我被提到这个问题 - Programmatically change http response status using spring 3 restful但它没有帮助 . 我有一个带有 @ExceptionHandler 方法的Controller类 @ExceptionHandler(CustomExcep...