首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring no matching editors or conversion strategy found 错误的一种情况

2012-10-10 
Spring no matching editors or conversion strategy found 异常的一种情况有人说这样写可以tx:advice id

Spring no matching editors or conversion strategy found 异常的一种情况
有人说这样写可以
<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的异常

热点排行