从网上粘了一段代码到eclipse报错The selection did not contain any resources that can run on a server 检查原因是因为代码中没有写主方法