AdminClient main方法运行时,配置问题。
来源:4-4 AdminClient客户端建立

马斯克2048
2023-02-03
Hi,
请问我在运行main方法的时候遇到这个问题,是哪里没有配置对吗
C:\Users\233\IdeaProjects\kafka_study\src\main\java\com\imooc\jiangzh\kafka_study\KafkaStudyApplication.java:3:32
java: cannot access org.springframework.boot.SpringApplication
bad class file: /C:/Users/233/.m2/repository/org/springframework/boot/spring-boot/3.0.2/spring-boot-3.0.2.jar!/org/springframework/boot/SpringApplication.class
class file has wrong version 61.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
这是我的配置:
这是我的pom文件:
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.0.2
com.imooc.jiangzh
kafka_study
0.0.1-SNAPSHOT
kafka_study
kafka_study
<java.version>8</java.version>
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-web
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
1回答
-
马斯克2048
提问者
2023-02-03
got the answer:
00
相似问题