How to change default port 8080
in Micronaut to something else? I use Micronaut for my project, and I cannot find the configuration for changing the port number.
From your product web console, navigate to Admin tab -> under Tools Settings -> Port Settings. You can now see the configured ports associated to various operations such as system manager, file transfer and more. You can edit the ports there and save your changes.
You can specify a custom server port in src/main/resources/application.yml
file, for instance:
micronaut:
server:
port: 8081
Alternatively, you can set up an environment variable MICRONAUT_SERVER_PORT
.
For more information, check the official documentation page https://docs.micronaut.io/latest/guide/index.html#runningSpecificPort
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With