我在工程中用的是Spring2.0德jar包,而且在配置文件的开始也加入了前缀。可是怎么部署不成功呢?
但是用1.x的不熟方式没有问题?
请经验大侠帮忙分析一下原因啊。

解决方案 »

  1.   

    参考下   spring2.5的
    <!-事务配置 -->
    <tx:advice id="txAdvice" transaction-manager="transactionManager">
    <tx:attributes>
    <!-- 查询方法只读 -->
    <tx:method name="find*" propagation="REQUIRED" read-only="true"/>
    <!-- 其它方法使用普通事务 -->
    <tx:method name="insert*" propagation="REQUIRED" />
    <tx:method name="delete*" propagation="REQUIRED" />
    <tx:method name="update*" propagation="REQUIRED" />
    </tx:attributes>
    </tx:advice>

    <!-- aop切入 -->
    <aop:config>
    <!--  AspackJ语言 -->
    <aop:pointcut expression="execution(* org.ssh.service.*.*(..))" id="interCut"/>
    <aop:advisor advice-ref="txAdvice" pointcut-ref="interCut"/>
    </aop:config>