Skip to content
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

Improve log statement "not eligible for getting processed by all BeanPostProcessors" to be more informative [SPR-7524] #12182

Closed
spring-projects-issues opened this issue Sep 3, 2010 · 2 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Arik Kfir opened SPR-7524 and commented

During construction of an application context, some beans are not eligible for being processed by all BeanPostProcessor, for various legitimate reasons. The log statement emitted when that happens for inner beans is "Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)"

The problem is that since these beans are not named, one has no way to know where to find them. It would be useful to append the bean source location to said log statement.


Referenced from: commits 479b4c1

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I'm afraid the source location isn't a candidate for getting logged there, since there isn't necessarily one set and it isn't easily accessible at that point of processing. Instead, I've added the bean's type to the log statement; that should help a bit as well.

Juergen

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.5 milestone Jan 11, 2019
@Forbain
Copy link

Forbain commented Apr 28, 2019

我所有的类都有这个提醒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants