1. 程式人生 > 其它 >springboot 提示The hierarchy of the type ** is inconsistent

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

技術標籤:spring 問題總結java 異常問題

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>