fix: register GlowMciComponent as Spring Bean via config to resolve IntelliJ autowiring error
This commit is contained in:
@@ -25,7 +25,7 @@ public class AxhubMciComponent {
|
||||
|
||||
Transfer<Object> request = Transfer.builder()
|
||||
.body(inputDto)
|
||||
.resBodyClass((Class) resBodyClass)
|
||||
.resBodyClass((Class<Object>) (Class<?>) resBodyClass)
|
||||
.build();
|
||||
|
||||
return syncMci(request);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user