Spring AOP 循环应用(This means that said other beans do not use the final version of the bean..)

来源:互联网 发布:濒死 知乎 编辑:程序博客网 时间:2024/05/22 07:51
在做spring AOP时,总发现

This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.错误

解决:

 检查切入点service是否再次注入到了你的AOP实现中.

切入点service是否调用了dao层代码,调用了就不会错出了,否则会出上面你的错误

 

1 0