-
Notifications
You must be signed in to change notification settings - Fork 563
Closed
Description
RestRepositoryMvcConfiguration.extendHandlerExceptionResolvers creates a new ExceptionHandlerExceptionResolver and sets it as the default. However, the ApplicationContext is not set on this resolver which means the resolver logic doesn't work (it can't find any beans required for resolution).
The fix is trivial - set the ApplicationContext on the ExceptionHandlerExceptionResolver. I've submitted a PR #2246
There is a temporary workaround and it is trivial. Implement RepositoryRestConfigurer and override
public void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver resolver) {
resolver.setApplicationContext(ctx);
}Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug