change server port in spring boot gradle project code example Example: change spring port server.port=8081