Skip to content

Commit

Permalink
Fix: SentinelRestTemplate support custom RestTemplate (alibaba#3329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruansheng8 committed Jun 8, 2023
1 parent 2f8db58 commit fac6ea8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public SentinelBeanPostProcessor(ApplicationContext applicationContext) {
@Override
public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition,
Class<?> beanType, String beanName) {
if (beanName == null || beanType != RestTemplate.class) {
if (beanName == null || !RestTemplate.class.isAssignableFrom(beanType)) {
return;
}

Expand Down

0 comments on commit fac6ea8

Please sign in to comment.