12 2021 档案

摘要:Spring注解配置从 Spring 2.5 开始就可以使用注解来配置依赖注入。使用注解的方式使我们无需在XML中配置一个Bean引用,更加简单和方便。 注解配置默认情况下在Spring中是关闭的,我们需要在配置文件中使用<context:annotation-config/>激活它。 <?xml 阅读全文
posted @ 2021-12-01 13:58 somky 阅读(407) 评论(0) 推荐(0)