Don't use deprecated methods anymore
package com.mitchellbosecke.pebble.boot;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.MessageSource;
@@ -11,7 +12,9 @@ import org.springframework.context.support.ResourceBundleMessageSource;
public class NonWebApplication {
public static void main(String[] args) {
- SpringApplication sa = new SpringApplicationBuilder(NonWebApplication.class).web(false).build();
+ SpringApplication sa = new SpringApplicationBuilder(NonWebApplication.class)
+ .web(WebApplicationType.NONE)
+ .build();
sa.run(args);
}
