diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java index 817c706..a25611f 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java @@ -59,8 +59,12 @@ public class BookstoreApplication extends SpringBootServletInitializer { public UrlTemplateResolver urlTemplateResolver() { UrlTemplateResolver urlTemplateResolver = new UrlTemplateResolver(); urlTemplateResolver.setCacheable(true); + + // TTL value in milliseconds + urlTemplateResolver.setCacheTTLMs(120000L); + urlTemplateResolver.getCharacterEncoding(); - return urlTemplateResolver; + return urlTemplateResolver; } @Bean