From c6a422a97f64165ab1f99ee1b57aefcea1ec37f4 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 9 Mar 2012 00:08:49 +0100 Subject: [PATCH] Juplo-Cachecontrol-Filter konfiguriert --- cachecontrol-example-jsp/pom.xml | 42 +++++++++++++++++++ .../src/main/resources/config.xml | 33 +++++++++++++++ .../src/main/resources/log4j.xml | 2 +- .../src/main/webapp/WEB-INF/web.xml | 20 +++++++++ 4 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 cachecontrol-example-jsp/src/main/resources/config.xml diff --git a/cachecontrol-example-jsp/pom.xml b/cachecontrol-example-jsp/pom.xml index 16cc1638..1b78cb5e 100644 --- a/cachecontrol-example-jsp/pom.xml +++ b/cachecontrol-example-jsp/pom.xml @@ -16,6 +16,14 @@ + + + ${pom.parent.groupId} + ${pom.parent.artifactId}-cachecontrol + ${pom.parent.version} + runtime + + javax.servlet @@ -24,6 +32,39 @@ runtime + + + org.springframework + spring-webmvc + ${springframework.version} + runtime + + + org.springframework + spring-context + ${springframework.version} + runtime + + + + commons-logging + commons-logging + + + + + org.springframework + spring-aspects + ${springframework.version} + runtime + + + org.aspectj + aspectjrt + ${aspectj.version} + runtime + + org.slf4j @@ -32,6 +73,7 @@ runtime + ${pom.parent.groupId} diff --git a/cachecontrol-example-jsp/src/main/resources/config.xml b/cachecontrol-example-jsp/src/main/resources/config.xml new file mode 100644 index 00000000..951402f0 --- /dev/null +++ b/cachecontrol-example-jsp/src/main/resources/config.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cachecontrol-example-jsp/src/main/resources/log4j.xml b/cachecontrol-example-jsp/src/main/resources/log4j.xml index 91fb330f..d3414bdb 100644 --- a/cachecontrol-example-jsp/src/main/resources/log4j.xml +++ b/cachecontrol-example-jsp/src/main/resources/log4j.xml @@ -14,7 +14,7 @@ - + diff --git a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml index 0143a84e..3ca24fa5 100644 --- a/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml +++ b/cachecontrol-example-jsp/src/main/webapp/WEB-INF/web.xml @@ -3,4 +3,24 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> + + + contextConfigLocation + classpath:/config.xml + + + + org.springframework.web.context.ContextLoaderListener + + + + accelerator + de.halbekunst.juplo.cachecontrol.AcceleratorFilter + + + + accelerator + *.jsp + + -- 2.20.1