- 博客(1)
- 收藏
- 关注
转载 autowire="byName" /"byType"
节选自http://www.blogjava.net/calvin/archive/2005/08/21/10530.htmlautowire="byName" /"byType" 假设Controller有一个属性名为customerDAO,Spring就会在配置文件里查找有没有名字为CustomerDAO的bean, 自动为Controller注入。 如果bean有两个
2007-02-01 11:49:00 935
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人