diff --git a/Chapter01/chapter01.00-calendar/build.gradle b/Chapter01/chapter01.00-calendar/build.gradle index f71e01d..531b970 100644 --- a/Chapter01/chapter01.00-calendar/build.gradle +++ b/Chapter01/chapter01.00-calendar/build.gradle @@ -59,6 +59,10 @@ dependencies { compile 'joda-time:joda-time' + // webjars + compile 'org.webjars:jquery:2.2.1' + compile 'org.webjars:jquery-ui:1.11.4' + compile 'org.webjars:bootstrap:3.3.6' // Tomcat Plugin def tomcatVersion = '8.0.42' diff --git a/Chapter01/chapter01.00-calendar/src/main/java/com/packtpub/springsecurity/web/configuration/WebMvcConfig.java b/Chapter01/chapter01.00-calendar/src/main/java/com/packtpub/springsecurity/web/configuration/WebMvcConfig.java index 754c273..931e476 100644 --- a/Chapter01/chapter01.00-calendar/src/main/java/com/packtpub/springsecurity/web/configuration/WebMvcConfig.java +++ b/Chapter01/chapter01.00-calendar/src/main/java/com/packtpub/springsecurity/web/configuration/WebMvcConfig.java @@ -63,6 +63,7 @@ public void addResourceHandlers(final ResourceHandlerRegistry registry) { .addResourceLocations("/resources/") .setCachePeriod(0) //Set to 0 in order to send cache headers that prevent caching ; + registry.addResourceHandler("/webjars/**").addResourceLocations("/webjars/").resourceChain(false); } @Override