我在演示应用程序中添加了新的两个依赖项,即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版
Spring引导版本
<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>
发布于 2021-08-28 04:22:55
这个问题由以下问题回答!org.springframework.cglib.core.ReflectUtils$1非法反光访问
需要注意的是,这是一个已知的Spring bug。
根据调查结果,这是因为当新的JDK 9模块系统检测到非法访问时,这种访问可能在将来被禁止。
还有进一步的读数..。Java平台,标准版
https://stackoverflow.com/questions/67956945
复制