From 83eaa47eef0ef06016012c9ad1839283029d9016 Mon Sep 17 00:00:00 2001 From: Sean Yang Date: Wed, 2 Oct 2024 10:40:31 +0800 Subject: [PATCH] Fix SpringRestToolKit getBean param mistake --- .../rpc/protocol/tri/rest/support/spring/SpringRestToolKit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }