Package tech.jhipster.config
Class DefaultProfileUtil
java.lang.Object
tech.jhipster.config.DefaultProfileUtil
Utility class to load a Spring profile to be used as default
when there is no
spring.profiles.active set in the environment or as command line argument.
If the value is not available in application.yml then dev profile will be used as default.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultProfile(org.springframework.boot.SpringApplication app) Set a default to use when no profile is configured.
-
Method Details
-
addDefaultProfile
public static void addDefaultProfile(org.springframework.boot.SpringApplication app) Set a default to use when no profile is configured.- Parameters:
app- the Spring application.
-