gpt4 book ai didi

spring-boot - spring boot - 发生了非法的反射访问操作

转载 作者:行者123 更新时间:2023-12-05 05:59:48 24 4
gpt4 key购买 nike

我向我的演示应用程序添加了两个新的依赖项,它们是 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)

enter image description here

我项目的SDK是15.0.2版本

Spring Boot版本

<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>

最佳答案

这个问题由下面的问题来回答! Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1

请注意,这是一个已知的 Spring 错误。

根据调查结果,发生这种情况是因为当新的 JDK 9 模块系统检测到非法访问时,将来可能会被禁止。

还有进一步的阅读…… Java Platform, Standard Edition

关于spring-boot - spring boot - 发生了非法的反射访问操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67956945/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com