08-02-2023, 01:47 PM
This question is the first result if you google for **Gradle Spring Port**.
If you use gradle you can do something like this if you have the Spring Boot Gradle Plugin already applied:
bootRun {
args += ["--server.port=[PORT]"]
}
For a more sophisticated answer please see my answer [here][1].
[1]:
If you use gradle you can do something like this if you have the Spring Boot Gradle Plugin already applied:
bootRun {
args += ["--server.port=[PORT]"]
}
For a more sophisticated answer please see my answer [here][1].
[1]:
[To see links please register here]