`
aiou
  • 浏览: 192084 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Spring no matching editors or conversion strategy found 异常的一种情况

    博客分类:
  • java
阅读更多
有人说这样写可以
<tx:advice id="txAdvise" transaction-manager="myTxManager">
        <tx:attributes>
            <tx:method name="*"></tx:method>
        </tx:attributes>
    </tx:advice>
  
    <tx:annotation-driven transaction-manager="myTxManager" proxy-target-class="true"/>
但是对我这种情况不可以

我的情况是在一个包已经存在一个同名dao,并在要注入的xxservice import了该dao
然后在另一个包里新写了另一个同名的dao,这个dao在spring里注册,并且注入到xxservice
这样就会报cannot convert的异常
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics