Spring Annotation-based container configuration

Spring 零配置时如果一个类实现了BeanPostProcessor,这时我们在用@Bean定义一个Bean时需要用static修饰,具体解释请参考

http://stackoverflow.com/questions/18512446/configuring-class-inside-beanpostprocessor-with-derived-a-abstractsinglebeandefi

猜你喜欢

转载自ihansel.iteye.com/blog/2293143
今日推荐