Skip to content

2.4.0 Rest Repositories initializ project reports lots of Beans is not eligible for getting processed by all BeanPostProcessors #24322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yohanndumais opened this issue Dec 3, 2020 · 1 comment
Labels
for: external-project For an external project and not something we can fix

Comments

@yohanndumais
Copy link

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/...

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 3, 2020
@scottfrederick
Copy link
Contributor

scottfrederick commented Dec 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

3 participants