开发者社区 问答 正文

jFinal+spring报错?报错

@ylx252 你好,想跟你请教个问题:jFinal整合spring启动的时候 不报错   就是访问controller的时候报错:信息如下;

Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'txAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of type [org.springframework.transaction.interceptor.TransactionInterceptor]

<p>
	http://www.oschina.net/p/spring-jfinal   我完全按照这个教程来的 
</p>

展开
收起
爱吃鱼的程序员 2020-06-09 14:13:35 496 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    jFinal好用吗最近才研究文档挺少

    <spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;background-color:#FFFFFF;">Causedby:org.springframework.beans.factory.BeanNotOfRequiredTypeException:Beannamed'txAdvice'mustbeoftype[org.aopalliance.aop.Advice],butwasactuallyoftype[org.springframework.transaction.interceptor.TransactionInterceptor]

    <spanstyle="font-size:14px;background-color:#FFFFFF;">说的很明白了。<spanstyle="font-family:微软雅黑,Verdana,sans-serif,宋体;font-size:14px;background-color:#FFFFFF;">txAdvice数据类型不对。

    <spanstyle="font-size:14px;background-color:#FFFFFF;">

    恩恩我也是对这个报错信息懵逼了完全照着官网的教程来的我检查了spring的配置文件的每一样都是一模一样的<atarget="_blank"rel="nofollow">http://www.oschina.net/question/2727734_2181739 已经解决

    2020-06-09 14:13:52
    赞同 展开评论
问答分类:
问答标签:
问答地址: