List of usage examples for org.springframework.boot WebApplicationType SERVLET
WebApplicationType SERVLET
To view the source code for org.springframework.boot WebApplicationType SERVLET.
Click Source Link
From source file:com.erudika.scoold.ScooldServer.java
public static void main(String[] args) { ((ch.qos.logback.classic.Logger) logger).setLevel(ch.qos.logback.classic.Level.TRACE); SpringApplication app = new SpringApplication(ScooldServer.class); initConfig();//from w w w .j a va 2 s . c o m app.setAdditionalProfiles(Config.ENVIRONMENT); app.setWebApplicationType(WebApplicationType.SERVLET); app.run(args); }
From source file:com.erudika.scoold.ScooldServer.java
@Override protected SpringApplicationBuilder configure(SpringApplicationBuilder app) { initConfig();/*w w w.j a va 2 s . c o m*/ app.profiles(Config.ENVIRONMENT); app.web(WebApplicationType.SERVLET); return app.sources(ScooldServer.class); }