I just started using Spring Boot and noticed a lot of INFO messages reporting Bean 'X' of type [Y] is not eligible for getting processed by all BeanPostProcessors.

I noticed this behavior when I updated from 2.3.5.RELEASE to 2.4.0.

This repo illustrate the behavior observed : https://github.com/yohanndumais/demo-data-rest created from spring initializr : https://start.spring.io/...

Comment From: scottfrederick

Thanks for the report and the sample. I can reproduce the problem you're seeing.

The root of the issue is related to configuration of Spring Data Rest. Making a few changes to the sample app removes Spring Boot's auto-configuration of Spring Data Rest from the path and narrows the problem scope.

In the main application class, disable auto-configuration of Spring Data Rest and add a configuration class to manually configure it:

@SpringBootApplication(exclude = {RepositoryRestMvcAutoConfiguration.class})
public class DemoDataRestApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoDataRestApplication.class, args);
    }

    @Configuration
    @Import(RepositoryRestMvcConfiguration.class)
    public class RestMvcConfiguration {
    }
}

With these changes, you should see the same warnings at startup. Removing the @Import(RepositoryRestMvcConfiguration.class) eliminates the warnings.

@yohanndumais Since this is isolated to Spring Data Rest, can you open an issue with that project so the team can look into it? You can post a link to that issue as a comment here for reference.

cc: @gregturn