2013年7月10日
摘要: http://blog.csdn.net/p_3er/article/details/92313071、命名空间使用Annotation的方式,需要在spring的配置文件中配置命名空间。命名空间中,隐式地注册了多个对注解进行解析处理的处理器。a、引入context命名空间[html]view plaincopyprint?b、打开注解功能[html]view plaincopyprint?2、@Autowired与@Resource @Autowired与@Resource在使用上是没有任何区别的。即可以放于属性声明之前,也可以放于属性的setter方法头上。 只是@Autowir... 阅读全文
posted @ 2013-07-10 23:03 道法自然smile 阅读(150) 评论(0) 推荐(0)