摘要: 1 <!--扫描器--> 2 <context:component-scan 3 base-package="com.spring.dao,com.spring.service,com.spring.aop"></context:component-scan> 4 <!--引入jdbc.proper 阅读全文
posted @ 2019-12-10 00:16 谢世林 阅读(685) 评论(0) 推荐(0)
摘要: @Repository和@Controller、@Service、@Component的作用差不多,都是把对象交给spring管理。@Repository用在持久层的接口上,这个注解是将接口的一个实现类交给spring管理。 Spring 自 2.0 版本开始,陆续引入了一些注解用于简化 Sprin 阅读全文
posted @ 2019-12-10 00:05 谢世林 阅读(1074) 评论(0) 推荐(0)