如何在 spring 中启动注解装配?

默认情况下,Spring 容器中未打开注解装配。因此,要使用基于注解装配,我们

必须通过配置 <context:annotation-config/> 元素在 Spring 配置文件

中启用它。

posted @ 2020-06-13 20:23  咔啡  阅读(812)  评论(0编辑  收藏  举报