You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ServerErrorHandler to inject dependencies in annotations (#5446)
Motivation:
- It seems good to directly inject ServerErrorHandler via a bean.
- #5440
Modifications:
- Introduced `Optional<List<ServerErrorHandler>>` serverErrorHandlers in
the `armeriaServer` method to enable the injection of ServerErrorHandler
beans.
- Updated the `configureServerWithArmeriaSettings` method to incorporate
error handlers.
Result:
- Users can now define custom ServerErrorHandler beans and utilize an
Armeria server that has been pre-configured with these user-defined
error handlers.
- Closes#5443
Copy file name to clipboardExpand all lines: spring/boot3-autoconfigure/src/main/java/com/linecorp/armeria/internal/spring/ArmeriaConfigurationUtil.java
Copy file name to clipboardExpand all lines: spring/boot3-autoconfigure/src/main/java/com/linecorp/armeria/spring/AbstractArmeriaAutoConfiguration.java
Copy file name to clipboardExpand all lines: spring/boot3-webflux-autoconfigure/src/main/java/com/linecorp/armeria/spring/web/reactive/ArmeriaReactiveWebServerFactory.java
Copy file name to clipboardExpand all lines: spring/boot3-webflux-autoconfigure/src/test/java/com/linecorp/armeria/spring/web/reactive/ArmeriaReactiveWebServerFactoryTest.java
0 commit comments