How do I configure the TCP/IP port listened on by a Spring Boot application, so it does not use the default port of 8080.
if you are using gradle as the build tool, you can set the server port in your application.yml file as:
server: port: 8291
If you are using maven then the port can be set in your application.properties file as:
server.port: 8291