Spring set active profile programmatically. SpringApplication app = new SpringApplication(Application.