摘要: 使用注解来构造IoC容器 用注解来向Spring容器注册Bean。需要在applicationContext.xml中注册<context:component-scan base-package=”pagkage1[,pagkage2,…,pagkageN]”/>。 如:在base-package指 阅读全文
posted @ 2016-03-08 10:48 tian830937 阅读(103) 评论(0) 推荐(0) 编辑