diff --git a/nrich-notification/README.md b/nrich-notification/README.md index 75c917f12..89c1eb9d5 100644 --- a/nrich-notification/README.md +++ b/nrich-notification/README.md @@ -30,7 +30,7 @@ To be able to use this library following configuration is required: } @Bean - public NotificationResponseService notificationResponseService(NotificationResolverService notificationResolverService) { + public NotificationResponseService notificationResponseService(NotificationResolverService notificationResolverService) { return new WebMvcNotificationResponseService(notificationResolverService); } @@ -62,7 +62,7 @@ advice would look something like this: @RequiredArgsConstructor public class NotificationErrorHandlingRestControllerAdvice { - private NotificationResponseService notificationResponseService; + private NotificationResponseService notificationResponseService; @ExceptionHandler(Exception.class) public ResponseEntity handleException(Exception exception, HttpServletRequest request) { @@ -93,7 +93,7 @@ Users can also use `NotificationResponseService` to return notifications with re @RequiredArgsConstructor public class NotificationTestController { - private NotificationResponseService> notificationResponseService; + private NotificationResponseService notificationResponseService; private ExampleService exampleService; diff --git a/nrich-webmvc/README.md b/nrich-webmvc/README.md index dcbf0a264..c24b19fd9 100644 --- a/nrich-webmvc/README.md +++ b/nrich-webmvc/README.md @@ -37,7 +37,7 @@ nrich-webmvc depends on nrich-logging and nrich-notification libraries but users } @Bean - public NotificationErrorHandlingRestControllerAdvice notificationErrorHandlingRestControllerAdvice(NotificationResponseService notificationResponseService, LoggingService loggingService, ExceptionAuxiliaryDataResolverService exceptionAuxiliaryDataResolverService, ExceptionHttpStatusResolverService exceptionHttpStatusResolverService) { + public NotificationErrorHandlingRestControllerAdvice notificationErrorHandlingRestControllerAdvice(BaseNotificationResponseService notificationResponseService, LoggingService loggingService, ExceptionAuxiliaryDataResolverService exceptionAuxiliaryDataResolverService, ExceptionHttpStatusResolverService exceptionHttpStatusResolverService) { return new NotificationErrorHandlingRestControllerAdvice(Collections.singletonList(ExecutionException.class.getName()), Collections.singletonList("uuid"), notificationResponseService, loggingService, exceptionAuxiliaryDataResolverService, exceptionHttpStatusResolverService); }