摘要: Spring的一个核心功能是IOC,就是将Bean初始化加载到容器中,Bean是如何加载到容器的,可以使用Spring注解方式或者Spring XML配置方式。 Spring注解方式减少了配置文件内容,更加便于管理,并且使用注解可以大大提高了开发效率! 阅读全文
posted @ 2017-07-30 10:53 阿飞云漫步 阅读(1625) 评论(0) 推荐(0) 编辑
摘要: Spring 中在使用注解(Annotation)会涉及到< context:annotation-config> 和 < context:component-scan>配置,下面就对这两个配置进行诠释。 阅读全文
posted @ 2017-07-30 10:51 阿飞云漫步 阅读(260) 评论(0) 推荐(0) 编辑