解决方法: 右击web工程-》属性或Build Path-》Java Build Path->Libraries-> Add Libray...->Server Runtime -》 当添加好Tomacat8.0以后,显示出来的错误就没有了。