spring boot- 常见问题

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.

说明8080端口被占用

解决办法:

在src/resource下增加文件application.properties

加入server.port=8082//只要不等于8080,就可以的

The requested profile "pom.xmlcould not be activatedbecause it does not exist

解决办法:

只要在设置里面删除pom.xml文件名就可以了。

你可能感兴趣的:(spring boot- 常见问题)