两种解决方法:
1、右键点击项目->Build Path->Add Libraries..->Server Runtime
选择Apache Tomcat v8.0
2、右键点击项目->Porperties->Targeted Runtimes