fix: register GlowMciComponent as Spring Bean via config to resolve IntelliJ autowiring error

This commit is contained in:
jade
2026-07-21 17:02:57 +09:00
parent ea27ed621a
commit 334af3e40e
2 changed files with 20 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ public class AxhubMciComponent {
Transfer<Object> request = Transfer.builder() Transfer<Object> request = Transfer.builder()
.body(inputDto) .body(inputDto)
.resBodyClass((Class) resBodyClass) .resBodyClass((Class<Object>) (Class<?>) resBodyClass)
.build(); .build();
return syncMci(request); return syncMci(request);

View File

@@ -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();
}
}