Merge branch '1.2.x'

pull/3866/head
Stephane Nicoll 9 years ago
commit 3800729d0d

@ -877,7 +877,7 @@ public class SpringApplication {
public void setApplicationContextClass(
Class<? extends ConfigurableApplicationContext> applicationContextClass) {
this.applicationContextClass = applicationContextClass;
if (isSpringWebAvailable() && !WebApplicationContext.class.isAssignableFrom(
if (!isSpringWebAvailable() || !WebApplicationContext.class.isAssignableFrom(
applicationContextClass)) {
this.webEnvironment = false;
}

Loading…
Cancel
Save