Home LearnWeb server failed to start. Port 8080 was already in use spring boot

Web server failed to start. Port 8080 was already in use spring boot

by Thando Gama
Spread the love

Web server failed to start. Port 8080 was already in use spring boot

Action:

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

Command execution failed.

Copy all the below code and paste it in your DemoApplication.java file also watch the video to be sure

    @Component

public class ChangePort implements WebServerFactoryCustomizer {

@Override
public void customize(TomcatServletWebServerFactory factory) {
    factory.setPort(8090);
}

}
// end of my java

Related Articles

Leave a Comment