If you're using STS, you can do it following below steps:
- Go to Boot Dashboard view, you'll see your Boot app, say myApp1
- Right click and click on Open Config. This should open Run Time
Configuration section.
- Go to Argument tab and add parameter server.port=, like in the example below, a custom port 9091 is added.
- Start the app and if everything is good, you'll see the desired port
on Boot dashboard.