idea启动报错‘否则 JavaFX 应用程序类必须扩展javafx.application.Application’

Connected to the target VM, address: '127.0.0.1:52064', transport: 'socket'
错误: 在类 com.hez.platform.hez.level.controller.GuestLevelConditionController 中找不到 main 方法, 请将 main 方法定义为:
   public static void main(String[] args)
否则 JavaFX 应用程序类必须扩展javafx.application.Application
Disconnected from the target VM, address: '127.0.0.1:52064', transport: 'socket'

Process finished with exit code 1

 

idea springboot启动时报这个错,找了半天文档,结果。。特么的没选择启动类。选择了一个没有main方法的类。找不到启动的main方法。切换到springboot配置的启动类后则启动成功。

 

 

 

再次启动,成功。


版权声明:本文为qq_37889636原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。