Description
Spring Boot version: 2.3.5.RELEASE
The server.tomcat.use-relative-redirects
property is incorrectly marked as deprecated in the spring-configuration-metadata.json
of the spring-boot-autoconfiguration
module
The problem is that the server.tomcat.use-relative-redirects
is not deprecated, but only the Boolean
typed getter and setter methods of the org.springframework.boot.autoconfigure.web.ServerProperties.Tomcat#useRelativeRedirects
are deprecated (see the daed512 commit and the #20796 issue for the related changes). The addition of the @Deprecated
to the Boolean getUseRelativeRedirects
caused the deprecated
to be set on true for the server.tomcat.use-relative-redirects
entry in the spring-configuration-metadata.json
of the spring-boot-autoconfiguration
module.
The incorrect deprecation of this property now causes the properties migration listener to warn about the use of this property:
The use of configuration keys that are no longer supported was found in the environment:
Property source 'applicationConfig':
Key: server.tomcat.use-relative-redirects
Reason: none
Please refer to the release notes or reference guide for potential alternatives.
The Intellij application properties editor now also warns about setting this property.