0. Create a new springboot project and put the configuration file in one place 1. Package maven with jar package: mvn package -Dmaven.test.skip=true 2. Start the specified external configuration file java -jar jar package name --spring.config.location=yml file address/properties file address