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

阿里 阅读:873 2021-03-31 12:51:53 评论:0

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

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

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

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

    <!-- 集中定义管理依赖版本号 --> 
	<properties> 
		<servlet-api.version>3.1.0</servlet-api.version> 
	</properties> 
        <!-- 集成servlet --> 
		<dependency> 
			<groupId>javax.servlet</groupId> 
			<artifactId>javax.servlet-api</artifactId> 
			<version>${servlet-api.version}</version> 
		</dependency>

 

标签:Spring Boot
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

关注我们

一个IT知识分享的公众号