From 9bb22ffb697bdabd806d1b8e983f0422c030701f Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Wed, 3 Jun 2020 17:41:12 +0200 Subject: [PATCH] Remove usages of deprecated Connector.setAttribute() See gh-21671 --- .../web/embedded/TomcatWebServerFactoryCustomizer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java index 2484e280bb..eb81150d48 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java @@ -160,11 +160,11 @@ public class TomcatWebServerFactoryCustomizer } private void customizeRelaxedPathChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) { - factory.addConnectorCustomizers((connector) -> connector.setAttribute("relaxedPathChars", relaxedChars)); + factory.addConnectorCustomizers((connector) -> connector.setProperty("relaxedPathChars", relaxedChars)); } private void customizeRelaxedQueryChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) { - factory.addConnectorCustomizers((connector) -> connector.setAttribute("relaxedQueryChars", relaxedChars)); + factory.addConnectorCustomizers((connector) -> connector.setProperty("relaxedQueryChars", relaxedChars)); } private String joinCharacters(List content) {