java spring security 不符合自动代理的条件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2107789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 19:29:33  来源:igfitidea点击:

spring security not eligible for auto-proxying

javaspringspring-mvc

提问by cometta

can anyone elaborate what does these info means when startup application?

谁能详细说明这些信息在启动应用程序时意味着什么?

INFO: Bean 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean '(inner bean)#2' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#1' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean '(inner bean)#4' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#2' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean '(inner bean)#6' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 13, 2010 11:00:34 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org

ref: http://bamboo.ci.codehaus.org/build/viewBuildLog.action;jsessionid=85C63FD38CA3A5320AE8CECE84D570B8?buildNumber=3&buildKey=MODFORJ-ROSASBREAKFAST

参考:http: //bamboo.ci.codehaus.org/build/viewBuildLog.action;jsessionid= 85C63FD38CA3A5320AE8CECE84D570B8?buildNumber=3&buildKey= MODFORJ-ROSASBREAKFAST

回答by skaffman

This is a fairly normal message. A BeanPostProcessoris a Spring construct for altering/wrapping/proxying beans in the context. Because of the way the context lifecycle works, some things have to be configured beforethe BeanPostProcessorget a look in, which leads to that message.

这是一个相当正常的消息。ABeanPostProcessor是用于在上下文中更改/包装/代理 bean 的 Spring 构造。因为上下文的生命周期的工作方式,有些事情必须被配置之前BeanPostProcessor得到一看,这导致了该消息。

It's almost never anything to worry about, hence the INFO level. The components that trigger the message are usually Spring's own internal components.

几乎没有什么可担心的,因此是 INFO 级别。触发消息的组件通常是 Spring 自己的内部组件。