1. 程式人生 > >java.lang.reflect.MalformedParameterizedTypeException 的解決辦法

java.lang.reflect.MalformedParameterizedTypeException 的解決辦法

第一次在專案中maven,tomcat啟動時報錯:nested exception is java.lang.reflect.MalformedParameterizedTypeException

網上查了一圈,找個這個帖子

檢查了一下發現自己不知道為什麼引入了一個org.apache.ibatis這個包,導致報錯

刪除poe.xml裡面的這個依賴就解決了:

<dependency>
          <groupId>org.apache.ibatis</groupId>
          <artifactId>ibatis-core</artifactId>
          <version>3.0</version>
</dependency>

要解決這種問題,最好是除錯spring原始碼。所以要學習怎麼除錯各種框架原始碼。