Skip to content

Commit

Permalink
Change attribute from String to Class
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Aug 15, 2023
1 parent 63a2465 commit 7798ede
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ private void eagerlyRegisterFeignClientBeanDefinition(String className, Map<Stri
// code
definition.addPropertyValue("qualifiers", qualifiers);
AbstractBeanDefinition beanDefinition = definition.getBeanDefinition();
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, className);
Class<?> type = ClassUtils.resolveClassName(className, null);
beanDefinition.setAttribute(FactoryBean.OBJECT_TYPE_ATTRIBUTE, type);
// has a default, won't be null
boolean primary = (Boolean) attributes.get("primary");
beanDefinition.setPrimary(primary);
Expand Down

0 comments on commit 7798ede

Please sign in to comment.