Spring Boot 警告:An illegal reflective access operation has occurred

转载Spring Boot 警告:An illegal reflective access operation has occurred

现象

Spring Boot项目升级到JDK 11,运行时发现警告如下:

解决方案

增加 JVM 启动参数:

--illegal-access=deny

保存,重新运行,解决

posted @ 2020-05-03 12:07  if年少有为  阅读(11746)  评论(0编辑  收藏  举报