Sometimes, when we start SpringBoot web(mvc) application, we got this exception:
3. The Solution
3.1 Way 1: Change your port
This exception means that your port has been already used by other apps. So the simplest way to solve this issue is to change your port like this:
Add this line to your src/main/resources/application.properties
3.2 Way 2: Stop or kill the old app
If you just want to use the port 8080, and you can do as follows to check what app use that port like this:
Then you can find that the process’ pid is 68428,just kill it like this:
Then everything would be ok.
You can avoid to use the default 8080 port of springboot apps by using specific property , or use the lsof and jps to determine the old app and kill it.