<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>5.0.2.RELEASE</version>
</dependency>
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>4.3.20.RELEASE</version>
</dependency>

一、如上,spring-webmvc的版本号不要超过spring-web的版本号,否则可能报包含如下内容的异常

nested exception is java.lang.NoClassDefFoundError: org/springframework/web/cors/CorsConfigurationSo

出现NoClassDefFoundError一般是jar包的问题

 

相关文章:

  • 2021-11-12
  • 2022-02-24
  • 2022-02-27
  • 2022-12-23
  • 2022-03-04
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-24
  • 2021-10-11
  • 2022-03-10
  • 2022-12-23
  • 2021-09-12
  • 2022-02-07
相关资源
相似解决方案