Medium java spring

4. How does Spring Boot load application.properties internally?

Sample answer: "During environment preparation, Boot's config data loader looks for application.properties and YAML in fixed locations: classpath root, classpath /config, the current directory, and ./config. Each file becomes a property source in the Environment. Later locations override earlier ones, and files outside the jar override ones inside."

Sources (1)
  1. Externalized configuration: Config data files