Skip to content

Instantly share code, notes, and snippets.

@jei0486
Last active November 11, 2023 16:10
Show Gist options
  • Save jei0486/7539a72d7aecf97e2d7db3988a41c4b8 to your computer and use it in GitHub Desktop.
Save jei0486/7539a72d7aecf97e2d7db3988a41c4b8 to your computer and use it in GitHub Desktop.
Spring Cloud OpenFeign 의존성
ext {
set('springCloudVersion', "2021.0.7")
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
}
<!-- 1. properties
spring-cloud.version 은 spring boot 버전에 따라 달라진다.
-->
<properties>
<spring-cloud.version>2021.0.7</spring-cloud.version>
</properties>
<!-- 2. dependencyManagement-->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<!-- 3. dependencies-->
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
</dependencies>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment