-
We can use the feign client.
-
And you can easily use this project
because basic things in the structure of the project are already prepared.
-
Java : 11
-
Spring Boot : 2.4.2
-
Feign : 2020.0.1
-
Build Tool : Gradle
build.gradle
ext {
/**
* Spring Boot and springCloudVersion must be compatible.
* 2.4.x == 2020.0.x
* ref : https://spring.io/projects/spring-cloud
*/
// Feign
set('springCloudVersion', '2020.0.1')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
// Feign
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
...
}
-
If you want to test profile environment
use this option
-Dspring.profiles.active={profile}
-
I recommend you.
See how the properties of
config/custom/url.yml
are used and worked