在STS中,突然把配置的Tomcat删除,换另外一个Tomcat使用时,出现:The import javax.servlet cannot be resolved。这个错误可能是服务器自带的servlet库未导入的原因。右键项目属性,转到Targeted Runtimes,选择一个服务器,例如Tomcat,单击应用,可能就可以解决。如图所示
相关文章
- R.id.layout等不能识别:cannot be resolved or is not a field
- 关于eclipse的Description:Resource Path Location Type The project cannot be built until build path errors are resolved的问题
- "cannot be resolved or is not a field"问题解决
- Eclipse “cannot be resolved to a type” error
- styleable cannot be resolved or is not a field
- *** cannot be resolved or is not a field
- layout cannot be resolved or is not a field
- id cannot be resolved or is not a field
- 出现 cannot be resolved or is not a field 错误
- web项目出现import javax.servlet.……cannot be resolved的解决方法