Change cacheServerFactoryBean in the nested Application ClientCacheConfiguration class, clientCacheServerPortConfigurer bean definition to properly denote the ClientCacheFatoryBean.
Move the @SuppressWarnings("unused") declaration out of the documenation source code reference.
This commit is contained in:
@@ -61,6 +61,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
* @see org.apache.geode.cache.client.Pool
|
||||
* @since 1.2.1
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
// tag::class[]
|
||||
@SpringBootApplication // <1>
|
||||
@Controller // <2>
|
||||
@@ -89,8 +90,8 @@ public class Application {
|
||||
ClientCacheConfigurer clientCacheServerPortConfigurer(
|
||||
@Value("${spring.session.data.geode.cache.server.port:40404}") int port) { // <5>
|
||||
|
||||
return (beanName, cacheServerFactoryBean) ->
|
||||
cacheServerFactoryBean.setServers(Collections.singletonList(
|
||||
return (beanName, clientCacheFactoryBean) ->
|
||||
clientCacheFactoryBean.setServers(Collections.singletonList(
|
||||
newConnectionEndpoint("localhost", port)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user