I wrote my own @RestControllerAdvice bean and wanted it to be reusable through my projects.
Thus, I wrote my own @AutoConfiguration to set it up, which works like a charm – except for @WebMvcTests where it is not autoconfigured.
I understand that @WebMvcTest does not autoconfigure everything but now I wonder how to set it up properly (without @Autowiring it in every MvcTest).