how to check port of running spring boot application code example Example: spring port server.port=8081