Change Apache Geode/Pivotal GemFire 'log-level' to 'error'.

Fix compiler warnings.

Fix Javadoc warnings.
This commit is contained in:
John Blum
2018-04-30 18:11:16 -07:00
parent cfcca3115a
commit f44ae0c586
12 changed files with 18 additions and 24 deletions

View File

@@ -21,7 +21,6 @@ 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;
import org.springframework.data.gemfire.config.annotation.CacheServerApplication;
import org.springframework.data.gemfire.config.annotation.CacheServerConfigurer;
import org.springframework.data.gemfire.config.annotation.EnableManager;
@@ -41,7 +40,7 @@ import org.springframework.session.data.gemfire.config.annotation.web.http.Enabl
@SuppressWarnings("unused")
// tag::class[]
@SpringBootApplication // <1>
@CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "warning") // <2>
@CacheServerApplication(name = "SpringSessionDataGeodeServerBootSample", logLevel = "error") // <2>
@EnableGemFireHttpSession(maxInactiveIntervalInSeconds = 20) // <3>
@EnableManager(start = true) // <4>
public class GemFireServer {
@@ -52,12 +51,6 @@ public class GemFireServer {
springApplication.run(args);
}
// Required to resolve property placeholders in Spring @Value annotations.
@Bean
static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}
@Bean
CacheServerConfigurer cacheServerPortConfigurer(
@Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <5>