Summary springboot starts jar and specifies configuration file

First: coverage
-- Overwrite the application-dev.yml file in the file in the system, both specification methods are available
By default, springboot reads application.properties>application.yml>specified file (application-dev.yml) first.
Public configuration can be in application.yml, and other configurations in application-dev.yml
1)java -jar mssda.jar  -Dconfig.file\=application-dev.yml 
2)java -jar mssda.jar   -Dspring.config.location=application-dev.yml

Second: Directly quote all
Use the following file to start everything. Application-dev.yml in the system is not read, and complete configuration is required (if the public configuration is missing, an error will be reported)
--Write the configuration in this way, all know one file, and the file must be complete at this time
java -jar mssda.jar  --spring.config.location\=application-dev.yml

To add: -D is the parameter of jvm, — is the parameter of environment variable; priority: the parameter of jvm is greater than the parameter of environment variable.