我把Redis封装成一个jar包,写完丢springboot项目中跑,出了这个问题,求解决(JDK版本与springboot是一致的)
可能是你在Spring Boot项目中的某个地方尝试实例化了一个接口 org.springframework.context.ApplicationContextInitializer 导致的。但是,接口不能被实例化,因此抛出了 IllegalArgumentException 异常。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>