处出现一个小问题

weiweideshenhua 2012-05-06 11:11:49
<!-- 配置事务 -->
<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。不知道是什么意思。有没有哪位大神能帮帮忙,第一次发帖,在线等。谢谢!
...全文
458 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hubinjisu 2012-05-17
  • 打赏
  • 举报
回复 1
试试这种方式?
<aop:config>
<aop:advisor pointcut="execution(* com.ssh.biz.MajorReleaseBiz.*(..))" advice-ref="txAdvice"/>
</aop:config>

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧