Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

初学java总是会报错许多(同一个错误过段时间碰到又忘记如何处理),所以想f在这里记录下自己的错误,

工具:eclispe 

错误原因:

用servlet却没有配置服务器(三脚猫)运行环境!

(一般eclispe刚装或者新建一个工作区会报这一类错误)

解决办法:

1.安装Tomcat(若安装请忽视) 

下载地址:官网 - https://tomcat.apache.org/

Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

2.在eclispe中配置服务器环境

Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

Multiple markers at this line - HttpServletResponse cannot be resolved to a type 报错

然后问题就解决了

                                                                                                                                 时间:2018.10.2