Spring怎样开启注解装配?

注解装配在默认情况下是不开启的。为了使用注解装配,我们必须在Spring配置文件中配置 <context:annotation-config/>元素。

猜你喜欢

转载自zhanghteye.iteye.com/blog/2371571