<!-- 配置事务 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="add" propagation="REQUIRED" read-only="false"/>
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut expression="execution(* com.ssh.biz.MajorReleaseBiz.*(..))" id="addpointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="addpointcut"/>
</aop:config>
这是我在applicationContext.xml中的配置
然后在<aop:advisor advice-ref="txAdvice" pointcut-ref="addpointcut"/>出现一个错误,大概如图片:
上面显示着:3 Spring AOP marker at this line。不知道是什么意思。有没有哪位大神能帮帮忙,第一次发帖,在线等。谢谢!