Initialization of bean failed; nested exception is java.lang.NoSuchMethodError:

编程入门 行业动态 更新时间:2024-10-10 14:25:12

Initialization of bean <a href=https://www.elefans.com/category/jswz/34/1770925.html style=failed; nested exception is java.lang.NoSuchMethodError:"/>

Initialization of bean failed; nested exception is java.lang.NoSuchMethodError:

原因是:pom.xml中的jar包的版本不统一

例子:把事务的版本也改成5.1.x的就解决了

<!--报错配置文件!原因:事务的jar包是5.2.6-->
<!--spring-->
<dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>5.1.4.RELEASE</version>
</dependency>
<!--AOP-->
<dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>5.1.14.RELEASE</version>
</dependency>
<!--tx-->
<dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>5.2.6.RELEASE</version>
</dependency>

更多推荐

Initialization of bean failed; nested exception is java.lang.NoSuchMethodError:

本文发布于:2024-02-11 14:37:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1681495.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:failed   nested   Initialization   bean   lang

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!