转载Spring Boot 警告:An illegal reflective access operation has occurred
现象
将Spring Boot
项目升级到JDK 11
,运行时发现警告如下:
解决方案
增加 JVM
启动参数:
--illegal-access=deny
保存,重新运行,解决
Spring Boot 警告:An illegal reflective access operation has occurred
2022-10-09 10:51:07
将Spring Boot
项目升级到JDK 11
,运行时发现警告如下:
增加 JVM
启动参数:
--illegal-access=deny
保存,重新运行,解决
Spring Boot 警告:An illegal reflective access operation has occurred