From 221664b0576b7ef51bbdb814745ca958e686b3de Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 31 Mar 2022 22:53:01 +0300
Subject: Bump Spring Boot to 2.6.6
* Spring4Shell workaround is not needed anymore
---
pom.xml | 2 +-
src/main/java/com/juick/www/BinderHandler.java | 17 -----------------
2 files changed, 1 insertion(+), 18 deletions(-)
delete mode 100644 src/main/java/com/juick/www/BinderHandler.java
diff --git a/pom.xml b/pom.xml
index 45391a2f..51adab95 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
org.springframework.boot
spring-boot-starter-parent
- 2.6.5
+ 2.6.6
com.juick
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);
- }
-}
--
cgit v1.2.3