I am currently trying to create a web application with Spring Boot. I need to host my application to localhost:8081. How do I change the port?
In your application.properties file, just add one line
server.port = 8080
And for more configurations you can refer Spring Boot documentation on port