eclipse调试时出现cannot connect to VM com.sun.jdi.connect.spi.ClosedConnectionException 这是因为使用了以前创建的项目 删掉重新建一个即可