Пример #1
0
 /** If no profile has been configured, set by default the "dev" profile. */
 private static void addDefaultProfile(
     SpringApplication app, SimpleCommandLinePropertySource source) {
   if (!source.containsProperty("spring.profiles.active")
       && !System.getenv().containsKey("SPRING_PROFILES_ACTIVE")) {
     app.setAdditionalProfiles("dev");
   }
 }
 /** Set a default profile if it has not been set */
 private static void addDefaultProfile(
     SpringApplication app, SimpleCommandLinePropertySource source) {
   if (!source.containsProperty("spring.profiles.active")) {
     app.setAdditionalProfiles(SpringProfiles.LOCAL);
   }
 }
Пример #3
0
 /** Set a default profile if it has not been set */
 private static void addDefaultProfile(
     SpringApplication app, SimpleCommandLinePropertySource source) {
   if (!source.containsProperty("spring.profiles.active")) {
     app.setAdditionalProfiles(Constants.SPRING_PROFILE_DEVELOPMENT);
   }
 }