From 3f239b49565f1a1ed044f0a09ff564b4cbbe2a72 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Sun, 5 Mar 2017 11:29:06 +0100 Subject: [PATCH] Fix Spring Boot deprecation warnings --- .../gemfire/src/main/java/sample/server/GemFireServer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/boot/gemfire/src/main/java/sample/server/GemFireServer.java b/samples/boot/gemfire/src/main/java/sample/server/GemFireServer.java index 0f65756b..2bec7f7d 100644 --- a/samples/boot/gemfire/src/main/java/sample/server/GemFireServer.java +++ b/samples/boot/gemfire/src/main/java/sample/server/GemFireServer.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 the original author or authors. + * Copyright 2014-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import org.apache.geode.cache.Cache; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; +import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; @@ -50,7 +51,7 @@ public class GemFireServer { public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(GemFireServer.class); - springApplication.setWebEnvironment(false); + springApplication.setWebApplicationType(WebApplicationType.NONE); springApplication.run(args); }