@ControllerAdvice global handle exception doesn't work

        It is found that it does not work when creating the global exception handling of the controller layer.

In the end, it was found that it was not scanned by the main startup class, so just add the package name to the main startup.

 

 

Guess you like

Origin blog.csdn.net/qq_41570752/article/details/109772808