From 12e595b728df07bbbfc59d61985d4253e4c624da Mon Sep 17 00:00:00 2001 From: mindol1004 Date: Fri, 8 Nov 2024 18:31:10 +0900 Subject: [PATCH] commit --- .../com/spring/infra/feign/config/CommonFeignConfig.java | 2 +- .../java/com/spring/infra/quartz/QuartzJobRegistrar.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/batch-quartz/src/main/java/com/spring/infra/feign/config/CommonFeignConfig.java b/batch-quartz/src/main/java/com/spring/infra/feign/config/CommonFeignConfig.java index cb89862..e541d9c 100644 --- a/batch-quartz/src/main/java/com/spring/infra/feign/config/CommonFeignConfig.java +++ b/batch-quartz/src/main/java/com/spring/infra/feign/config/CommonFeignConfig.java @@ -64,7 +64,7 @@ public class CommonFeignConfig { // OkHttp 요청 생성 okhttp3.Request.Builder okHttpRequestBuilder = new okhttp3.Request.Builder() .url(request.url()) - .method(request.httpMethod().name(), getRequestBody(request)); // 요청 본문 설정 + .method(request.httpMethod().name(), request.httpMethod() == Request.HttpMethod.GET ? null : getRequestBody(request)); // 요청 본문 설정 // Feign 요청의 헤더를 OkHttp 요청에 추가 request.headers().forEach((key, values) -> { diff --git a/batch-quartz/src/main/java/com/spring/infra/quartz/QuartzJobRegistrar.java b/batch-quartz/src/main/java/com/spring/infra/quartz/QuartzJobRegistrar.java index 3984805..a003998 100644 --- a/batch-quartz/src/main/java/com/spring/infra/quartz/QuartzJobRegistrar.java +++ b/batch-quartz/src/main/java/com/spring/infra/quartz/QuartzJobRegistrar.java @@ -3,10 +3,10 @@ package com.spring.infra.quartz; import java.util.Map; import org.springframework.aop.support.AopUtils; +import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationListener; -import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.EventListener; import org.springframework.lang.NonNull; import org.springframework.stereotype.Component; @@ -27,14 +27,14 @@ import lombok.RequiredArgsConstructor; *
  • 각 작업에 대한 JobDetail 및 Trigger를 생성합니다.
  • * * - *

    이 클래스는 {@link ApplicationListener}를 구현하여 {@link ContextRefreshedEvent}가 발생할 때 자동으로 실행됩니다.

    + *

    이 클래스는 {@link ApplicationListener}를 구현하여 {@link ApplicationReadyEvent}가 발생할 때 자동으로 실행됩니다.

    * * @author mindol * @version 1.0 */ @Component @RequiredArgsConstructor -public class QuartzJobRegistrar implements ApplicationListener { +public class QuartzJobRegistrar implements ApplicationListener { /** * 애플리케이션 컨텍스트 객체입니다. @@ -58,7 +58,7 @@ public class QuartzJobRegistrar implements ApplicationListener