去掉对Spring BeanFacotry的getBean方法的依赖 在使用Spring时,有时会碰到这种情况: 这样定义之后,Spring就会使用CGLIB自动生成一个实现了createBean方法的ClazzA的一个实现类,并让createBean返回ClazzB。上面所说的那个createBean方法必须符合下面的方法签名:
<public|protected> [abstract] <return-type> theMethodName(no-arguments);