Skip to content

Commit

Permalink
[feat] #145 feignClient 의존성 적용 및 메인에 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeoongu committed Dec 8, 2024
1 parent 646bada commit d1ca0b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ repositories {
mavenCentral()
}

ext {
set('springCloudVersion', "2023.0.0")
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
Expand Down Expand Up @@ -84,6 +94,8 @@ dependencies {
// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'

implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
}

tasks.named('test') {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/ussum/homepage/HomepageApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableBatchProcessing // 배치 사용을 위한 선언
@EnableScheduling // 스케줄러 사용을 위한 선언
@EnableAspectJAutoProxy // AOP 사용을 위한 선언
@EnableFeignClients // Feign 사용을 위한 선언
@SpringBootApplication
public class HomepageApplication {

Expand Down

0 comments on commit d1ca0b3

Please sign in to comment.