Spring MVC中的异常处理

时间:2018-02-02 22:00:09

标签: validation spring-mvc exception-handling dynamic-websites

在构建Web项目时,我们如何处理Spring MVC中的异常?验证检查是否足以处理任何错误?

1 个答案:

答案 0 :(得分:0)

In handle method scope, you can use validation checks to assure the parameter is correct and has suitable range.

Goballly, if there is some exceptions which are not catched by any application functions, the @ControllerAdvice is good to deal with such exceptions. You know much details by refering this page exception-handling-in-spring-mvc