An illegal reflective access operation has occurred

编程教程 > Java (2058) 2025-01-27 10:26:25

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

调整后
调整完成


评论
User Image
提示:请评论与当前内容相关的回复,广告、推广或无关内容将被删除。

相关文章
启动Spring Boot 项目突然看到下面的警告内容WARNING: An illegal reflective access operation has occurred WARNING:...
Spring Boot编译如何更改默认JDK版本?,spring boot,java
JDK8 从某年某月开始变成个人免费,商用收费了,以至于网上经常搜索到最后一个免费版是jdk那个版本。下面通过Oracle 官方文档来看最后的免费午餐版本是 J
Spring boot 1.x官方即将停止开发及维护Spring Boot 1.x EOL 2019年1月1日
升级环境说明目前项目使用的2.3.7版本(自己感觉还行,但是官方已经停止支持了。)Spring Boot 官方支持情况spring boot 官方支持情况官方在今年8月就终止了对2.3.x的版本...
Spring Boot tomcat 版本修改在maven pom.xml配置文件中,properties 节点里面加入<tomcat.version&gtl;9.0.
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检索引擎的整合使用
Spring Boot 2.1 新特性,已升级Spring 版本为5.1,支持servlet 4.0,支持Tomcat 9.0等等
前言笔者所在项目组在搭建一个全新项目的时候选用了SpringBoot3.x,项目中应用了很多SpringBoot2.x时代相关的第三方组件例如baomidou出
环境说明 之前spring cloud 用的基于spring boot 2.2.x版本,sleuth版本同步为2.x 现在升级了spring cloud 版本,基于了spring b...
本文将介绍Spring Boot和HikariCP示例。HikariCP是快速,简单,可靠和生产就绪的JDBC连接池。在Spring Boot 2.0版本中,默认数据库池技术已从Tomcat P...
Ubuntu 20.04 安装jdk8sudo apt-get install openjdk-8-jdk安装完成后查看版本java -version