spring-boot - Spring Boot - org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问

标签 spring-boot

我在使用 Spring Boot 时遇到 Spring 应用程序问题。

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/User/.m2/repository/org/springframework/spring-core/5.0.5.RELEASE/spring-core-5.0.5.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

我有 JDK 9.0,Spring Boot 2.0.4.RELEASE(现在我将依赖项更改为 2.0.5.RELEASE,但 Spring Core 未实现。我看到 Spring Core 是 5.0.9。

有什么问题吗?

最佳答案

我在 Spring Boot 2.1.12 中遇到了同样的问题。删除 org.springframework.boot:spring-boot-devtools 依赖项解决了我的问题。这似乎是一个已知问题(根据我发现的几个 GitHub 问题。

关于spring-boot - Spring Boot - org.springframework.cglib.core.ReflectUtils$1 进行非法反射访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52512580/

相关文章:

java - 无法使用 graphql-spring 初始化代理

Mongodb:从两个集合中收集数据的正确方法?

java - 带有 Maven 配置的 Spring-boot

java - Spring JPA 不为实体创建表

java - 从 Web Controller 调用 spring Rest Controller

java - MapStruct 实现在 Spring Boot Web 应用程序中不起作用

java - spring中如何将JSON请求转换为特定格式的列表?

java - 无法在日志附加器中 Autowiring spring bean

Spring testcontainers Driver org.testcontainers.jdbc.ContainerDatabaseDriver 声称不接受 jdbcUrl

java - 使用spring jpa编写动态查询的方法