how to change port of private api in spring boot code example Example: change port in spring boot server.port=8081