Open daadaadaah opened 2 months ago
@Autowired
public DiscordNotificationService(
RestTemplateHttpClient restTemplateHttpClient
) {
this.restTemplateHttpClient = restTemplateHttpClient;
}
@Autowired
public RestTemplateHttpClient(
RestTemplate restTemplate
) {
this.restTemplate = restTemplate;
}
@Configuration
public class AppConfig {
@Autowired
public AppConfig(
GitHubApiLoggingInterceptor gitHubApiLoggingInterceptor
) {
this.gitHubApiLoggingInterceptor = gitHubApiLoggingInterceptor;
}
@Bean
public RestTemplate restTemplate() {
RestTemplate restTemplate = new RestTemplate();
// ... 생략
return restTemplate;
}
}
@Autowired
public GitHubApiLoggingInterceptor(
LogService logService
) {
this.logService = logService;
}
@Autowired
public LogDirectSaveGoogleSheetsService(
NotificationService notificationService
) {
this.notificationService = notificationService;
}
@Autowired
public DiscordNotificationService(
RestTemplateHttpClient restTemplateHttpClient
) {
this.restTemplateHttpClient = restTemplateHttpClient;
}
2번째 순환 참조 문제
에러 메시지
에러 메시지 해석
문제
문제 원인
해결책 (관련 commit)