maven项目 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

在myeclipse中,新建maven项目报如题错误。对于这个问题,各种搜索,没有找到完全一样的教程,最后终于自己搞好啦。
搜索得知,因为没有找到tomcat 服务器,解决办法:

项目名——右击——Add Library——Myeclipse Server Library——(接下来选择自己的本地服务器)点击即可,这样就找到服务器啦
maven项目 The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path