出现如上图错误后 1.web程序工程名上右键-->properties -->Java Build Path-->Libraries-->Add Library...-->选择server runtime