|
|
@ -22,6 +22,7 @@ import java.util.Locale;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.http.MediaType;
|
|
|
|
import org.springframework.util.Assert;
|
|
|
|
import org.springframework.util.Assert;
|
|
|
|
import org.springframework.validation.DefaultMessageCodesResolver;
|
|
|
|
import org.springframework.validation.DefaultMessageCodesResolver;
|
|
|
@ -366,10 +367,14 @@ public class WebMvcProperties {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private String parameterName;
|
|
|
|
private String parameterName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@DeprecatedConfigurationProperty(
|
|
|
|
|
|
|
|
reason = "Use of path extensions for request mapping and for content negotiation is discouraged.")
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public boolean isFavorPathExtension() {
|
|
|
|
public boolean isFavorPathExtension() {
|
|
|
|
return this.favorPathExtension;
|
|
|
|
return this.favorPathExtension;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public void setFavorPathExtension(boolean favorPathExtension) {
|
|
|
|
public void setFavorPathExtension(boolean favorPathExtension) {
|
|
|
|
this.favorPathExtension = favorPathExtension;
|
|
|
|
this.favorPathExtension = favorPathExtension;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -416,18 +421,26 @@ public class WebMvcProperties {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean useRegisteredSuffixPattern = false;
|
|
|
|
private boolean useRegisteredSuffixPattern = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@DeprecatedConfigurationProperty(
|
|
|
|
|
|
|
|
reason = "Use of path extensions for request mapping and for content negotiation is discouraged.")
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public boolean isUseSuffixPattern() {
|
|
|
|
public boolean isUseSuffixPattern() {
|
|
|
|
return this.useSuffixPattern;
|
|
|
|
return this.useSuffixPattern;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public void setUseSuffixPattern(boolean useSuffixPattern) {
|
|
|
|
public void setUseSuffixPattern(boolean useSuffixPattern) {
|
|
|
|
this.useSuffixPattern = useSuffixPattern;
|
|
|
|
this.useSuffixPattern = useSuffixPattern;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@DeprecatedConfigurationProperty(
|
|
|
|
|
|
|
|
reason = "Use of path extensions for request mapping and for content negotiation is discouraged.")
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public boolean isUseRegisteredSuffixPattern() {
|
|
|
|
public boolean isUseRegisteredSuffixPattern() {
|
|
|
|
return this.useRegisteredSuffixPattern;
|
|
|
|
return this.useRegisteredSuffixPattern;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public void setUseRegisteredSuffixPattern(boolean useRegisteredSuffixPattern) {
|
|
|
|
public void setUseRegisteredSuffixPattern(boolean useRegisteredSuffixPattern) {
|
|
|
|
this.useRegisteredSuffixPattern = useRegisteredSuffixPattern;
|
|
|
|
this.useRegisteredSuffixPattern = useRegisteredSuffixPattern;
|
|
|
|
}
|
|
|
|
}
|
|
|
|