Skip to content

Instantly share code, notes, and snippets.

@mbhave
mbhave / profile-description.md
Last active February 23, 2019 01:56
Profile activation in Spring Boot

Activating profiles in Spring Boot

If you're using Spring Boot, profiles can be activated in the following ways:

  • spring.profiles.active property
  • spring.profiles.include property
  • environment.setActiveProfiles
  • SpringApplication#additionalProfiles or SpringApplicationBuilder.profiles()

spring.profiles.active property