|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
* Copyright 2002-2020 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -162,7 +162,7 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { |
|
|
|
|
|
|
|
|
|
|
|
private static final boolean javaxValidationPresent; |
|
|
|
private static final boolean javaxValidationPresent; |
|
|
|
|
|
|
|
|
|
|
|
private static boolean romePresent; |
|
|
|
private static final boolean romePresent; |
|
|
|
|
|
|
|
|
|
|
|
private static final boolean jaxb2Present; |
|
|
|
private static final boolean jaxb2Present; |
|
|
|
|
|
|
|
|
|
|
@ -208,7 +208,7 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { |
|
|
|
handlerMappingDef.getPropertyValues().add("contentNegotiationManager", contentNegotiationManager); |
|
|
|
handlerMappingDef.getPropertyValues().add("contentNegotiationManager", contentNegotiationManager); |
|
|
|
|
|
|
|
|
|
|
|
if (element.hasAttribute("enable-matrix-variables")) { |
|
|
|
if (element.hasAttribute("enable-matrix-variables")) { |
|
|
|
Boolean enableMatrixVariables = Boolean.valueOf(element.getAttribute("enable-matrix-variables")); |
|
|
|
boolean enableMatrixVariables = Boolean.parseBoolean(element.getAttribute("enable-matrix-variables")); |
|
|
|
handlerMappingDef.getPropertyValues().add("removeSemicolonContent", !enableMatrixVariables); |
|
|
|
handlerMappingDef.getPropertyValues().add("removeSemicolonContent", !enableMatrixVariables); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -569,7 +569,7 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (convertersElement == null || Boolean.valueOf(convertersElement.getAttribute("register-defaults"))) { |
|
|
|
if (convertersElement == null || Boolean.parseBoolean(convertersElement.getAttribute("register-defaults"))) { |
|
|
|
messageConverters.setSource(source); |
|
|
|
messageConverters.setSource(source); |
|
|
|
messageConverters.add(createConverterDefinition(ByteArrayHttpMessageConverter.class, source)); |
|
|
|
messageConverters.add(createConverterDefinition(ByteArrayHttpMessageConverter.class, source)); |
|
|
|
|
|
|
|
|
|
|
|