|
|
@ -928,6 +928,15 @@ public class SpringApplication {
|
|
|
|
this.mainApplicationClass = mainApplicationClass;
|
|
|
|
this.mainApplicationClass = mainApplicationClass;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Returns whether this {@link SpringApplication} is running within a web environment.
|
|
|
|
|
|
|
|
* @return {@code true} if running within a web environment, otherwise {@code false}.
|
|
|
|
|
|
|
|
* @see #setWebEnvironment(boolean)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public boolean isWebEnvironment() {
|
|
|
|
|
|
|
|
return this.webEnvironment;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets if this application is running within a web environment. If not specified will
|
|
|
|
* Sets if this application is running within a web environment. If not specified will
|
|
|
|
* attempt to deduce the environment based on the classpath.
|
|
|
|
* attempt to deduce the environment based on the classpath.
|
|
|
|