【发布时间】:2013-04-09 13:35:40
【问题描述】:
我正在关注本教程http://java-diaries.blogspot.com/2011/03/get-started-with-spring-jms-using.html,但我不明白为什么对于 @Service 和 @Autowired 注释,您需要在 app-context.xml 中显式创建 bean,但对于 @Component,它会为您创建一个.有人可以解释一下吗?另外,有没有办法使用注释添加目标和连接工厂bean?还是我需要类似Add Bean Programmatically to Spring Web App Context
的解决方案【问题讨论】:
标签: java spring activemq applicationcontext