-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Description
I have some info messages regarding BeanPostProcessors. One of them is Bean 'org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration' of type [class org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
I have checked that PersistenceExceptionTranslationAutoConfiguration is declared inside org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration as a bean. A possible solution is declaring it inside org.springframework.context.annotation.ImportBeanDefinitionRegistrar as org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerPostProcessor.Registrar. Another solution might be declaring it static.