使用外部自定义application.properties 文件可使用参数spring.config.location进行指定,springboot会自动使用该位置的配置文件

例如 -Dspring.config.location=classpath:   表示使用根目录下的