因为需要外部也运行Tomcat eclipse的提示端口被占用
改端口的话东西显示不出来
Several ports (8005, 8080) required by Tomcat v9.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
端口占用,需要关闭占用的8080端口。每次重启tomcat需要先关闭。
端口被占用就先停掉tomcat,eclipse配置的tomcat里你可以多个项目添加到里面,这样tomcat启动就可以运行多个项目,或者你再下载一个tomcat,比如下载8.5版本的修改里面的默认端口号,然后在配置到eclipse里面,对于改的比较少的项目放到一个tomcat里面,改的比较多的放到另一个里面,这样他们启动就不会受到影响
参考我的博客:https://blog.csdn.net/chen462488588/article/details/115393101?spm=1001.2014.3001.5502