1、出现这个错误是因为没有导入tomcat运行环境。
3、点击library,接着选择Add Library来查找Tomcat库。
5、选择服务器,然后点击finish完成。
7、可以看到tomcat库已经导入好了