mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Remove usages of deprecated Connector.setAttribute()
See gh-21671
This commit is contained in:
parent
eb38eeaf30
commit
9bb22ffb69
@ -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<Character> content) {
|
||||
|
Loading…
Reference in New Issue
Block a user