您的位置:首页 > 编程语言 > Java开发

javax.servlet.annotation.webfilter 报错

2016-05-19 17:05 393 查看


eclipse报错:

The import javax.servlet.annotation cannot be resolved

Multiple markers at this line
- WebFilter cannot be resolved to a type
- The attribute value is undefined for the annotation type 

解决方法:右击工程- build path- configure build path- add external jars- 然后添加运行工程的那个tomcat的bin文件夹中的servlet-api.jar包。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息