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.
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.