解决方法 右击项目-> Properties -> Java Build Path -> Add Library -> Server Runtime -> next -> 选择你的Server -> Finish即可