diff options
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/java/com/juick/www/BinderHandler.java | 17 |
2 files changed, 1 insertions, 18 deletions
@@ -3,7 +3,7 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>2.6.5</version> + <version>2.6.6</version> <relativePath /> </parent> <groupId>com.juick</groupId> diff --git a/src/main/java/com/juick/www/BinderHandler.java b/src/main/java/com/juick/www/BinderHandler.java deleted file mode 100644 index c89fc37c..00000000 --- a/src/main/java/com/juick/www/BinderHandler.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.juick.www; - -import org.springframework.core.annotation.Order; -import org.springframework.web.bind.WebDataBinder; -import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.bind.annotation.InitBinder; - -@ControllerAdvice -@Order(10000) -public class BinderHandler { - - @InitBinder - public void setAllowedFields(WebDataBinder dataBinder) { - String[] denylist = new String[] { "class.*", "Class.*", "*.class.*", "*.Class.*" }; - dataBinder.setDisallowedFields(denylist); - } -} |