If you need to kill a process in the command line for a specific port in ubuntu. you can use the following command : If that doesn’t work you could also use $() for command interpolation :
Spring Boot provides sensible defaults for many configuration properties. But we sometimes need to customize these with our case-specific values. And a common use case is changing the default port for the embedded server. To change the default port we can use the application.properties file : Or we can use the application.yml file : Here we […]
In spring , we can configure the default port by setting the specific property when starting the application or by customizing the embedded server configuration. For that, we will set our @SpringBootApplication class : Here we changed the default Tomcat port 8080 to 8083. We can use a Command-Line Arguments to change the default port .
When running our spring application as a jar, we can set the server.port Command-Line argument with the java command :
Which process is listening on a port ? To answer this question , there is many solution , you find here the two best solution : 1. First Solution Open a command prompt window (as Administrator) From “Start\Search box” Enter “cmd” then right-click on “cmd.exe” and select “Run as Administrator“ Enter the following text then hit Enter. Find […]