运行tomcat的时候,出现下面的错误
java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

原因:主要是因为spring的版本低所导致的问题,但是你可能会有疑问,明明,我的项目中用到的spring的版本明明已经是新版本,怎么可能存在低版本的问题呢?

此时,你需要检查你的pom.xml文件中是否有使用的到dubbo,因为dubbo一来了一个旧版本的spring,所以导致此问题发生;解决方案如下:
Context namespace element 'component-scan' its parser class are only available on JDK 1.5 and higher

相关文章:

  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2018-12-24
  • 2021-11-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-01-15
  • 2021-08-31
  • 2021-04-11
相关资源
相似解决方案