摘要:
注解和xml混合使用 1.将所有的bean都配置xml中 <bean id="" class=""> 2.将所有的依赖都使用注解 @Autowired 默认不生效。为了生效,需要在xml配置:<context:annotation-config> 总结: 注解1:<context:component 阅读全文
posted @ 2018-08-16 00:14
wei_hu
阅读(359)
评论(0)
推荐(0)
浙公网安备 33010602011771号