zoukankan      html  css  js  c++  java
  • 记java.lang.NoSuchMethodError错误解决过程

    在配置完applicationContext-activemq.xml后,运行时一直报java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableBeanFactory.getSingletonMutex()Ljava/lang/Object;的错误,后来发现是

    <dependency>
               <groupId>org.springframework</groupId>
                 <artifactId>spring-jms</artifactId>
                 <version>4.1.3.RELEASE</version>
      </dependency>

    的版本与

    <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-context</artifactId>
      </dependency>
      <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-beans</artifactId>
      </dependency>
      <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-webmvc</artifactId>
      </dependency>
      <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-jdbc</artifactId>
      </dependency>
      <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring-aspects</artifactId>
      </dependency>

    配置的版本不同导致的错误,把这几个spring的组件配置成同样版本即可。

  • 相关阅读:
    Java入门
    Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8
    pypy3.8安装
    asyncio执行阻塞代码
    linux安装go
    python消费rabbitmq
    绑定进程到指定cpu运行
    负载均衡算法
    django版本规划
    FastAPI WebSocket 简单演示
  • 原文地址:https://www.cnblogs.com/wl889490/p/12681082.html
Copyright © 2011-2022 走看看