diff --git a/README.md b/README.md index 0c3b72d..791f7de 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ >* jackson 日期时间格式化 >* swagger2 api管理 >* 自定义Filter,避免XSS攻击和SQL注入攻击 ->* 自定义AOP配合redis解决重复提交问题 +>* 自定义AOP配合redis解决重复提交问题 >* 自定义拦截器,拦截referer来避免CSRF攻击 >* 自定义拦截器,集成thymeleaf根据不同的响应状态码跳转不同的页面 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 66fa3cb..e863571 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,7 @@ test + org.springframework.boot spring-boot-starter-data-redis diff --git a/src/main/java/com/xwolf/boot/config/InterceptorConfig.java b/src/main/java/com/xwolf/boot/config/InterceptorConfig.java index 8b58240..77ff72d 100644 --- a/src/main/java/com/xwolf/boot/config/InterceptorConfig.java +++ b/src/main/java/com/xwolf/boot/config/InterceptorConfig.java @@ -24,7 +24,6 @@ public class InterceptorConfig extends WebMvcConfigurerAdapter { CsrfInterceptor csrfInterceptor(){ return new CsrfInterceptor(); } - /** * 错误拦截 * @return diff --git a/src/main/java/com/xwolf/boot/controller/ErrorController.java b/src/main/java/com/xwolf/boot/controller/ErrorController.java index 78d8cf1..61324c8 100644 --- a/src/main/java/com/xwolf/boot/controller/ErrorController.java +++ b/src/main/java/com/xwolf/boot/controller/ErrorController.java @@ -31,4 +31,5 @@ public class ErrorController { public String error302(){ return "302"; } + } diff --git a/src/main/resources/templates/302.html b/src/main/resources/templates/302.html index 1fe6573..46a65cd 100644 --- a/src/main/resources/templates/302.html +++ b/src/main/resources/templates/302.html @@ -1,5 +1,5 @@ - + 302 diff --git a/src/main/resources/templates/400.html b/src/main/resources/templates/400.html index ee7906a..e24cb80 100644 --- a/src/main/resources/templates/400.html +++ b/src/main/resources/templates/400.html @@ -1,5 +1,5 @@ - + 400 diff --git a/src/main/resources/templates/404.html b/src/main/resources/templates/404.html index 2e4e3a3..9db9a4e 100644 --- a/src/main/resources/templates/404.html +++ b/src/main/resources/templates/404.html @@ -1,5 +1,5 @@ - + 404 diff --git a/src/main/resources/templates/500.html b/src/main/resources/templates/500.html index f7a48c7..fc0e978 100644 --- a/src/main/resources/templates/500.html +++ b/src/main/resources/templates/500.html @@ -1,5 +1,5 @@ - + 500