怎样开启注解装配?

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

posted @ 2020-05-08 16:30  咔啡  阅读(582)  评论(0)    收藏  举报