SpringBoot------8080端口被占用抛出异常

异常信息:

The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured. 

解决方法:

进到项目下这两个文件,添加“server.port=8888”即可

原文地址:https://www.cnblogs.com/tianhengblogs/p/7967889.html