1,在springboot的启动类中把 SpringApplication.run(websiteAPP.class, args)删除掉。
2,加上SpringApplicationBuilder builder = new SpringApplicationBuilder(websiteAPP.class);
builder.headless(false).run(args);
System.out.println("启动成功");
3,找到eclipse.ini,在最后加上:-Djava.awt.headless=false。重启就欧克了