Spring注解

 <context:component-scan base-package="com.jikexueyuan.dao"></context:component-scan>
 <context:component-scan base-package="com.jikexueyuan.services"></context:component-scan>

有一点需要说明

@Controller在spring.xml文件中只是一个普通的bean

@Controller在springMVC.xml文件中却是一个控制器

 

posted @ 2017-03-23 15:56  我们不该这样的  阅读(114)  评论(0编辑  收藏  举报