wimdeblauwe / error-handling-spring-boot-starter

Spring Boot starter for configurable REST API error handling
https://wimdeblauwe.github.io/error-handling-spring-boot-starter/
Apache License 2.0
430 stars 52 forks source link

Add ConditionalOnMissingBean to all beans in AbstractErrorHandlingConfiguration #73

Closed ooraini closed 1 year ago

ooraini commented 1 year ago

I'm trying to customize the ErrorMessageMapper, but I see that the bean is added unconditionally to the application context. If it doesn't cause any issues, can we add @ConditionalOnMissingBean to all the beans?

wimdeblauwe commented 1 year ago

Might be a good idea indeed. Why do you need to customize it?

ooraini commented 1 year ago

Hi, I want to hook in MessageSource for translation, seems like the logical place for it.

wimdeblauwe commented 1 year ago

Implemented in #74

wimdeblauwe commented 1 year ago

Version 4.2.0 released with support for this.