除了HttpServletRequest cannot be resolved to a type之外的,各种xxxxx cannot be resolved to a type

转载自:https://www.cnblogs.com/haimishasha/p/6188241.html
博主提供了两种方法,我只尝试了第一种就成功了
1.这个错误可能是服务器自带的servlet库未导入的原因。
2.右键项目属性,转到Targeted Runtimes,选择一个服务器,例如Tomcat

本文介绍了一种常见的编程错误'xxxxxcannotberesolvedtoatype'的解决方案,通常该错误由服务器自带的servlet库未正确导入引起。通过调整项目属性中的TargetedRuntimes设置,选择合适的服务器如Tomcat,即可有效解决这一问题。
除了HttpServletRequest cannot be resolved to a type之外的,各种xxxxx cannot be resolved to a type

转载自:https://www.cnblogs.com/haimishasha/p/6188241.html
博主提供了两种方法,我只尝试了第一种就成功了
1.这个错误可能是服务器自带的servlet库未导入的原因。
2.右键项目属性,转到Targeted Runtimes,选择一个服务器,例如Tomcat


被折叠的 条评论
为什么被折叠?