1.右键项目选择BuildPath. 2.点击Libraries中的Add Library按钮。 3.选择server runtime然后点击next。 4.选择项目对应的运行服务器,点击finish。