[JAVA] The story that the port can no longer be used in the Spring boot sample program

Someone is sitting in the port

Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

What is this guy? It was running the first time. It seems that the port is already in use, to guess the context.

Check if it is true

From cmd

netstat -an

I will check it with.

image.png Certainly, 8080 is LISTENING. Is this a recognition that another application is monopolizing? Work with the premise as it is ** 1. Find and exit the running app (Assumption: Maybe the java you moved before is still sitting?) ** ** If the assumption of 2.1 is correct, set it so that it will be delivered properly after stopping ** Let's focus on the two.

Find out which apps are running and exit

This time, check who is sitting from cmd.

netstat -nao | find "8080"

image.png I came ... 3688 ・ ・ ・‼ This is ... the root of all evil ...! It seems that it is the fastest to cut it with the kill command here, but I will check the identity from the task manager. Is there a way to check it from cmd? Well? Spitz taught me that I should do too much. image.png Sure enough, it was java ~ End from task In addition, I thought that the same phenomenon would occur after restarting, but I succeeded in restarting smoothly, so is this okay?

Once solved

Also, if there is a problem with the port, I will transcribe it.

Recommended Posts

The story that the port can no longer be used in the Spring boot sample program
[Spring Boot] List of validation rules that can be used in the property file for error messages
Sample code that uses the Mustache template engine in Spring Boot
About the matter that hidden_field can be used insanely
Convenient shortcut keys that can be used in Eclipse
The case that @Autowired could not be used in JUnit5
[Question] Can nullif be used in the count function in JPQL?
Sample web application that handles multiple databases in Spring Boot 1.5
[Spring Data JPA] Can And condition be used in the automatically implemented method of delete?
Ruby on Rails 5 quick learning practice guide that can be used in the field Summary
Be aware that the default for Spring boot redirect is http
Summary of ORM "uroboroSQL" that can be used in enterprise Java
SwiftUI View that can be used in combination with other frameworks
A story about a Spring Boot project written in Java that supports Kotlin
[Rails] "pry-rails" that can be used when saving with the create method
I used Docker to solidify the template to be developed with spring boot.
Sample program that returns the hash value of a file in Java
The story that the Servlet could not be loaded in the Java Web application
About the case that ("b" .. "aa") could not be used in Ruby Range
Technology excerpt that can be used for creating EC sites in Java training
Starting with Spring Boot 2.3, the default error page no longer contains detailed error information
The story of raising Spring Boot 1.5 series to 2.1 series
Organize methods that can be used with StringUtils
[Ruby] Methods that can be used with strings
Annotations used in Spring Boot task management tool
View the Gradle task in the Spring Boot project
[Spring Boot] The story that the bean of the class with ConfigurationProperties annotation was not found
The story that the variable initialization method called in the Java constructor should not be overridden
Get multiple Resources that match the pattern in spring
Specify the encoding of static resources in Spring Boot
Basic functional interface that can be understood in 3 minutes
Write a class that can be ordered in Java
The story that the forced update could not be implemented
The story that .java is also built in Unity 2018
Syntax and exception occurrence conditions that can be used when comparing with null in Java
[Java 8] Sorting method in alphabetical order and string length order that can be used in coding tests
Learning Ruby with AtCoder Beginners Selection [Some Sums] Increase the methods that can be used
Start jnlp that has expired and can no longer be started without using Java Web Start