An illegal reflective access operation has occurred

位置:首页>文章>详情   分类: 教程分享 > Java教程   阅读(1078)   2023-03-28 11:29:14
启动Spring Boot 项目突然看到下面的警告内容
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/D:/maven_res/org/springframework/spring-core/5.2.8.RELEASE/spring-core-5.2.8.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
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
错误信息
我还以为怎么了,原因是idea默认使用了jdk 11,项目使用的是jdk1.8.将11调整为1.8即可
调整为8

调整后
调整完成
地址:https://www.leftso.com/article/897.html

相关阅读

启动Spring Boot 项目突然看到下面的警告内容WARNING: An illegal reflective access operation has occurred WARNING: ...
Spring Boot编译如何更改默认JDK版本?,spring boot,java
升级环境说明目前项目使用的2.3.7版本(自己感觉还行,但是官方已经停止支持了。)Spring Boot 官方支持情况spring boot 官方支持情况官方在今年8月就终止了对2.3.x的版本...
Spring boot 1.x官方即将停止开发及维护Spring Boot 1.x EOL 2019年1月1日
Spring Boot 2.0 支持的Apache Camel 版本发布了_Apache Camel 2.22发布支持Spring Boot 2.0
Spring Boot 1.x升级到Spring Boot 2.0迁移指南
前言    本教程主要讲解spring boot如何整合 spring data elasticsearch 实现elasticsearch检索引擎的整合使用
Ubuntu 20.04 安装jdk8sudo apt-get install openjdk-8-jdk安装完成后查看版本java -version
spring boot 开发技巧,在开发web项目中跳过thyemeleaf模板/js/css等缓存避免每次修改资源文件都需要重启服务器