Remove assertion that fails in spring 4.3.x

Need to make this class 4.2.x compatible.

see gh-1192
This commit is contained in:
Spencer Gibb
2016-07-16 10:36:27 -06:00
parent 2bdd2dab78
commit 54931afa8b

View File

@@ -190,8 +190,6 @@ class FeignClientsRegistrar implements ImportBeanDefinitionRegistrar,
private void validate(Map<String, Object> attributes) {
if (StringUtils.hasText((String) attributes.get("value"))) {
Assert.isTrue(!StringUtils.hasText((String) attributes.get("name")),
"Either name or value can be specified, but not both");
Assert.isTrue(!StringUtils.hasText((String) attributes.get("serviceId")),
"Either name (serviceId) or value can be specified, but not both");
}