SpringBoot: configuration priority

java -jar ConfigTest-1.0-SNAPSHOT.jar --server.port=9988 --location=Newyork The priority of the parameters carried when executing the jar package is higher than the configuration in application.properties, so it will be overwritten

Guess you like

Origin blog.csdn.net/amadeus_liu2/article/details/114855891