|
|
@@ -42,7 +42,7 @@ public class SpringContextHolder {
|
|
|
*/
|
|
|
public static String getActiveProfile() {
|
|
|
Assert.notNull(context, "spring context not ready");
|
|
|
- return context.getEnvironment().getActiveProfiles()[0];
|
|
|
+ return context.getEnvironment().getActiveProfiles().length > 0 ? context.getEnvironment().getActiveProfiles()[0] : "local-dev";
|
|
|
}
|
|
|
|
|
|
/**
|