Java HotSpot(TM) 64-Bit Server VM warning:Options -Xverify:none and -noverify were deprecated in ..

刚刚用IDEA学习springBoot.

运行程序时,出现了这种情况

Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAcXFfNTMzNjYyODI=,size_20,color_FFFFFF,t_70,g_se,x_16

项目可以正常运行,但是看见报红就害怕,就想把它弄好。

经过查找我明白了:-Xverify:none 和 -noverify都是JVM参数,可以禁止字节码效验,提高编译速度,这个警告就是说,这两个参数已经过时了。

我找到了很多方法,最后我用的方法是:不要勾选Enable lanuch optimization

1.首先,找到Run,鼠标放上去,出现选项,选择Edit Configurations...

Java HotSpot(TM) 64-Bit Server VM warning:Options -Xverify:none and -noverify were deprecated in .._第1张图片

 2.选择完Edit Configurations...会出现以下界面,找到Spring Boot 展开它,找到Enble lanuch optimization,把对钩取消掉就好了

Java HotSpot(TM) 64-Bit Server VM warning:Options -Xverify:none and -noverify were deprecated in .._第2张图片

 3.然后在运行程序就好了

 

你可能感兴趣的:(SpringBoot,java,后端,intellij-idea,spring)