springboot 提示The hierarchy of the type ** is inconsistent

心已赠人 2023-10-10 12:22 42阅读 0赞

SpringBoot 启动提示:The hierarchy of the type ** is inconsistent

原因:该类或其父类所在的jar包没有被引入

建议解决方案:从该类的父类开始跟踪源码,找到其所在的jar包并引入项目中

一般是因为 缺少依赖添加上依赖即可

  1. <!-- 集中定义管理依赖版本号 -->
  2. <properties>
  3. <servlet-api.version>3.1.0</servlet-api.version>
  4. </properties>
  5. <!-- 集成servlet -->
  6. <dependency>
  7. <groupId>javax.servlet</groupId>
  8. <artifactId>javax.servlet-api</artifactId>
  9. <version>${servlet-api.version}</version>
  10. </dependency>

发表评论

表情:
评论列表 (有 0 条评论,42人围观)

还没有评论,来说两句吧...

相关阅读