我向演示应用程序添加了两个新的依赖项,即 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>
这个问题由下面的问题来回答!org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问
值得注意的是,这是一个已知的 Spring bug。
根据调查结果,发生这种情况是因为新的 JDK 9 模块系统检测到非法访问,该访问将来可能会被禁止。
还有更多阅读内容...Java 平台,标准版
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)