diff --git a/dubbo-plugin/dubbo-rest-spring/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/SpringRestToolKit.java b/dubbo-plugin/dubbo-rest-spring/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/SpringRestToolKit.java index e8c75ae6c89..eb70a039f29 100644 --- a/dubbo-plugin/dubbo-rest-spring/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/SpringRestToolKit.java +++ b/dubbo-plugin/dubbo-rest-spring/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/support/spring/SpringRestToolKit.java @@ -79,7 +79,7 @@ public SpringRestToolKit(FrameworkModel frameworkModel) { configuration = new ConfigurationWrapper(applicationModel); } if (context != null && context.containsBean("mvcConversionService")) { - conversionService = context.getBean(ConversionService.class, "mvcConversionService"); + conversionService = context.getBean("mvcConversionService", ConversionService.class); } else { conversionService = DefaultConversionService.getSharedInstance(); }