在 Spring Boot 里面,可以使用以下几种方式来加载配置:

  • 1)properties文件;
  • 2)YAML文件;
  • 3)系统环境变量;
  • 4)命令行参数;
  • 等等……