Spring2.5注解不需要接口注入的方法
最近用到了Spring2.5的注解,一般情况下是需要注入接口才可是使用,当没有接口,而直接在Action中注入Service层的实现类的时候,在运行会报
?
添加一个属性 proxy-target-proxy-target-class="java">@Resource(name = "articleServiceImpl")private ArticleServiceImpl articleService;//ArticleServiceImpl为实现类,不是接口
?
==================================The End================================
?