需要那是因为 这个项目的jdk版本和 我自己的本机的版本不一样,需要右键 选择properties 选择java build path 选择 JRE System Library 选择edit 然后选择自己的版本就行了