@ExceptionHandler and @ControllerAdvice unity handle exceptions

// @ ExceptionHandler and @ControllerAdvice unified exception handling 
// unified exception handling controller needs to be put under general controller and the same level package, or in ComponentScan package. In the handling of an exception can be used System.out manner, logger.info may be used, or may be into the database.

 

Guess you like

Origin www.cnblogs.com/luojiabao/p/11074585.html