摘要: 1.如果不想在xml文件中配置bean,我们可以给我们的类加上spring组件注解,只需再配置下spring的扫描器就可以实现bean的自动载入。 <!-- 注解注入 --> <context:annotation-config></context:annotation-config> <conte 阅读全文
posted @ 2016-10-08 23:37 jungleland 阅读(129) 评论(0) 推荐(0)