Skip to content

Commit 7798ede

Browse files
committed
Change attribute from String to Class
This is required by spring-projects/spring-framework@a6ff95a
1 parent 63a2465 commit 7798ede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignClientsRegistrar.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ private void eagerlyRegisterFeignClientBeanDefinition(String className, Map<Stri
248248
// code
249249
definition.addPropertyValue("qualifiers", qualifiers);
250250
AbstractBeanDefinition beanDefinition = definition.getBeanDefinition();
251-
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, className);
251+
Class<?> type = ClassUtils.resolveClassName(className, null);
252+
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, type);
252253
// has a default, won't be null
253254
boolean primary = (Boolean) attributes.get("primary");
254255
beanDefinition.setPrimary(primary);

0 commit comments

Comments
 (0)