eclipse打开以前的项目,突然出现以下问题

解决办法:
在Eclipse中,右击项目,选择Build Path->configure build path->Libraries->Add External JARs,找 到你计算机中tomcat的解压路径,在lib文件夹下选中"servlet-api.jar",添加点击“确定”

在eclipse工具栏,依次点击window->Preferences
选择java->Installed JREs(左边工具栏)
选中你所用的JDK版本,选择Edit
点击“Add External JARs”,找到tomcat安装目录下的lib文件夹,选择servlet-api.jar,点击确定

因为之前安装了mysql server所以出现8080端口被占用问题--修改tomcat默认8080端口
打开tomcat安装目录->conf->打开server(用记事本)
找到
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
将8080端口修改即可,这里我用的是9090端口

修改完毕,运行,服务正常启动:

、
网友评论