`
zhanghaj00
  • 浏览: 63159 次
社区版块
存档分类
最新评论

AutoWired 和 resource 的区别

 
阅读更多

今天发现了一个问题 在maven 管理的项目中 一个parent下面有很多子项目 子项目用spring 做容器, 一个子项目依赖另外一个子项目,这时候问题来了,当我在一个子项目中 想要用另外一个子项目的spring bean容器的东西时 我是用autowired还是resource呢  答案 是resource。。。。

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics