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

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>

猜你喜欢

转载自blog.csdn.net/zhouzhiwengang/article/details/112565989