请问JSR-330哪个注解的功能和Spring的@Component、@Repository、@Service、@Controller相同?即用于装配Bean
解决方案 »
- 添加报IllegalArgumentException occurred calling getter错误
- Lucene检索中文拼音问题
- axis2如何返回字符串给客户端
- Tomcat + SQL出问题~急
- websphere 部署EJB应用 客户端lookup错误问题 急!!!
- 不重起weblogic清除服务器缓存问题
- struts的验证方法可不可以搭配着用?
- JBOSS中数据库连接池抛出的异常问题?
- jbuilderx中用weblogic的DataSource出错
- 手机版网页就是文字太多,隐藏了一部分,但是想要手指点上去的时候再显示出来
- 连接问题
- 其实我想知道有木有人把主流 框架的doc文档整理成chm或者之类的....
被1楼将了一军,还居然把那么烂的文章贴出来。来自一个老外的回答:Dear howsun,guznik has just replied to a thread you have subscribed to entitled - about JSR-330 - in the Container forum of Spring Community Forums.This thread is located at:
http://forum.springsource.org/showthread.php?t=98112&goto=newpostHere is the message that has just been posted:
***************
@Named is equivalent to @Component (and therefore all the stereotypes that "inherit" from @Component), and @Inject is equivalent to @Autowired.
Here is a relevant post: <a href="http://matthiaswessendorf.wordpress.com/2010/04/17/spring-3-0-and-jsr-330-part/" target="_blank" rel="nofollow">http://matthiaswessendorf.wordpress....-jsr-330-part/</a>
***************There may also be other replies, but you will not receive any more notifications until you visit the forum again.
......
说得很清楚:
@Named -> @Component
@Inject -> @Autowired