挽星

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年11月15日

摘要: 12.2.1 概述 注解实现Bean配置主要用来进行如依赖注入、生命周期回调方法定义等,不能消除XML文件中的Bean元数据定义,且基于XML配置中的依赖注入的数据将覆盖基于注解配置中的依赖注入的数据。Spring3的基于注解实现Bean依赖注入支持如下三种注解:Spring自带依赖注入注解:Spring自带的一套依赖注入注解;JSR-250注解:Java平台的公共注解,是Java EE 5规范之一,在JDK6中默认包含这些注解,从Spring2.5开始支持。JSR-330注解:Java 依赖注入标准,Java EE 6规范之一,可能在加入到未来JDK版本,从Spring3开始支持;JPA注解 阅读全文
posted @ 2013-11-15 17:20 挽星 阅读(15820) 评论(0) 推荐(0) 编辑

摘要: Springsource has released the Javaconfig Framework as a core component of Spring 3.0. There is a trend in the industry to move from XML meta data toward using more annotation driven meta data. I say pick your poison, as one can mess up either.I do like the readability of using Java code for configur 阅读全文
posted @ 2013-11-15 17:07 挽星 阅读(3731) 评论(0) 推荐(1) 编辑