I\'m developing a REST API using Spring Framework.
First I wasn\'t able to run my application because of the same problem. The port 8080 on my computer is busy. Then I
On the console, looking at the topmost right side of the dialog you should see a red button kinda like a buzzer. To stop the spring boot application properly you just ran, go ahead and hit this particular "red" button and your problem is solved. Hope this helps!
The easier way to solve this is changing the port on the application.properties file;
enter image description here
server.port=8081
In case your app is run on httpS, make sure you put right values under the following properties:
server.ssl.key-store-password=
server.ssl.key-alias=
I got the same error when I put the wrong values here
In your windows os follow the following steps:
If you have devtools like auto build dependency remove it. It is automatically build your project and run it. When you build manually it show port in use.
On Windows:
To get started, open the command prompt by clicking on Start and then typing cmd. In the command window, go ahead and type in the following command:
netstat -a -n -o
In the command above, the -o parameter is what will add the PID to the end of the table. Press enter and you should see something like this:
Now to see the name of the process that is using that port, go to Task Manager by pressing CTRL + SHIFT + ESC and then click on the Process tab. In Windows 10, you should click on the Details tab.
By default, the task manager does not display the process ID, so you have to click on View and then Select Columns.
You might also need to look into services running in background. To do that right-click and select open services as shown below:
Hope it helps :)