Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@
@Configuration
class CacheConfiguration {

private CacheManager jdkCache() {
return null;
}

private CacheManager gemfireCache() {
return null;
}

// tag::snippet[]
@Bean
CacheManager cacheManager(CacheManager jdkCache, CacheManager gemfireCache) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.web.method.HandlerTypePredicate;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.util.pattern.PathPatternParser;

// tag::snippet[]
@Configuration
Expand All @@ -15,11 +14,5 @@ public class WebConfiguration implements WebMvcConfigurer {
public void configurePathMatch(PathMatchConfigurer configurer) {
configurer.addPathPrefix("/api", HandlerTypePredicate.forAnnotation(RestController.class));
}

private PathPatternParser patternParser() {
PathPatternParser pathPatternParser = new PathPatternParser();
// ...
return pathPatternParser;
}
}
// end::snippet[]
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,6 @@ public DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, In
setAge(age);
setName(name);
}

private void init() {
this.initialized = true;
}

private void destroy() {
this.destroyed = true;
}
}


Expand Down