首页 > 解决方案 > Java HotSpot(TM) 64 位服务器 VM 警告:选项 -Xverify:none 和 -noverify 在 JDK 13 中已弃用

问题描述

我从“https://start.spring.io/”创建了一个项目,并从 main 方法运行它而不添加任何内容,但是我收到这样的错误。我正在使用 JDK11,我正在使用 Intellij,启用了虚拟化。输出如下:

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.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::       (v2.2.12.RELEASE)

2020-12-11 22:35:48.638  INFO 14028 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication on DESKTOP-1HHLJVV with PID 14028 (C:\Users\xsamu\Desktop\demo\demo\target\classes started by xsamu in C:\Users\xsamu\Desktop\demo\demo)
2020-12-11 22:35:48.639  INFO 14028 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default
2020-12-11 22:35:49.148  INFO 14028 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2020-12-11 22:35:49.155  INFO 14028 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-12-11 22:35:49.155  INFO 14028 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.41]
2020-12-11 22:35:49.212  INFO 14028 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-12-11 22:35:49.212  INFO 14028 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 548 ms
2020-12-11 22:35:49.312  INFO 14028 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-11 22:35:49.425  INFO 14028 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2020-12-11 22:35:49.428  INFO 14028 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 0.981 seconds (JVM running for 1.39)

标签: javaspringspring-boot

解决方案


推荐阅读