1.报错java.lang.NoClassDefFoundError: org/springframework/core/GenericTypeResolver
查找发现是缺少 spring-core
2.拷贝下面代码到pom.xml中(版本号可自行替换)
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.3.17</version>
</dependency>