【发布时间】:2021-08-29 13:47:07
【问题描述】:
我向我的演示应用程序添加了新的两个依赖项,即 spring 集成和 spring 集成文件。之后,我在控制台中收到以下警告。应用程序运行良好,但它困扰我。
我该如何解决这个问题?
WARNING: Illegal reflective access by org.springframework.util.ReflectionUtils (file:/C:/Users/TECH%20WORLD/.m2/repository/org/springframework/spring-core/5.3.7/spring-core-5.3.7.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class)
我项目的 SDK 是 15.0.2 版本
春季启动版
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
添加的依赖项
<!-- https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-core -->
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-core</artifactId>
<version>5.5.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.integration/spring-integration-file -->
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-file</artifactId>
<version>5.5.0</version>
</dependency>
【问题讨论】:
-
您添加了哪个 JAVA 版本和哪些依赖项?
-
@dassum 我已经用版本详细信息修改了我的主要问题。谢谢!
-
stackoverflow.com/questions/46671472/… 这能回答你的问题吗?
标签: spring-boot