From 334af3e40e24c09c787ce0aa349e5390ebf5effc Mon Sep 17 00:00:00 2001 From: jade Date: Tue, 21 Jul 2026 17:02:57 +0900 Subject: [PATCH] fix: register GlowMciComponent as Spring Bean via config to resolve IntelliJ autowiring error --- .../dap/mcc/component/AxhubMciComponent.java | 2 +- .../dap/mcc/component/GlowMockConfig.java | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/GlowMockConfig.java diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/AxhubMciComponent.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/AxhubMciComponent.java index 12abdc4..fcbc7bd 100644 --- a/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/AxhubMciComponent.java +++ b/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/AxhubMciComponent.java @@ -25,7 +25,7 @@ public class AxhubMciComponent { Transfer request = Transfer.builder() .body(inputDto) - .resBodyClass((Class) resBodyClass) + .resBodyClass((Class) (Class) resBodyClass) .build(); return syncMci(request); diff --git a/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/GlowMockConfig.java b/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/GlowMockConfig.java new file mode 100644 index 0000000..82e55dc --- /dev/null +++ b/dap-tool-other/src/main/java/io/shinhanlife/dap/mcc/component/GlowMockConfig.java @@ -0,0 +1,19 @@ +package io.shinhanlife.dap.mcc.component; + +import io.shinhanlife.glow.communication.module.mci.component.GlowMciComponent; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * TODO: 실제 Glow Framework 의존성이 추가되어 io.shinhanlife.glow 패키지가 + * ComponentScan에 잡히게 되면 이 설정 클래스는 삭제하세요. + */ +@Configuration +public class GlowMockConfig { + + @Bean + @SuppressWarnings("rawtypes") + public GlowMciComponent glowMciComponent() { + return new GlowMciComponent(); + } +}