File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,7 @@ object Dependencies {
4040 const val GRPC_TESTING = " io.grpc:grpc-testing:${DependencyVersion .GRPC } "
4141 const val GRPC_SERVER_SPRING = " net.devh:grpc-server-spring-boot-starter:${DependencyVersion .GRPC_SERVER_SPRING } "
4242 const val GOOGLE_PROTOBUF = " com.google.protobuf:protobuf-java:${DependencyVersion .GOOGLE_PROTOBUF } "
43+
44+ // Spring Cloud Config
45+ const val SPRING_CLOUD_CONFIG = " org.springframework.cloud:spring-cloud-starter-config"
4346}
Original file line number Diff line number Diff line change @@ -14,4 +14,6 @@ object DependencyVersion {
1414 const val PROTOBUF = " 3.25.3"
1515 const val GRPC_SERVER_SPRING = " 2.15.0.RELEASE"
1616 const val GOOGLE_PROTOBUF = " 3.25.3"
17+
18+ const val SPRING_CLOUD_CONFIG_VERSION = " 2023.0.3"
1719}
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ repositories {
1515 mavenCentral()
1616}
1717
18+ dependencyManagement {
19+ imports {
20+ mavenBom(" org.springframework.cloud:spring-cloud-dependencies:${DependencyVersion .SPRING_CLOUD_CONFIG_VERSION } " )
21+ }
22+ }
23+
1824dependencies {
1925 // 스프링 부트 기본 기능
2026 implementation(Dependencies .SPRING_BOOT_STARTER )
@@ -66,6 +72,9 @@ dependencies {
6672 testImplementation(Dependencies .GRPC_TESTING )
6773 implementation(Dependencies .GRPC_SERVER_SPRING )
6874 implementation(Dependencies .GOOGLE_PROTOBUF )
75+
76+ // Cloud Config
77+ implementation(Dependencies .SPRING_CLOUD_CONFIG )
6978}
7079
7180
Original file line number Diff line number Diff line change 1+ spring :
2+ application :
3+ name : Casper-Schedule
4+ config :
5+ import : " configserver:${CONFIG_SERVER_URL}"
6+ cloud :
7+ config :
8+ label : main
9+ fail-fast : true
10+ retry :
11+ initial-interval : 1000
12+ max-attempts : 6
13+ max-interval : 2000
14+ multiplier : 1.1
15+ profiles :
16+ active : ${SPRING_PROFILES_ACTIVE}
17+
18+ management :
19+ endpoints :
20+ web :
21+ exposure :
22+ include : health,info,refresh
You can’t perform that action at this time.
0 commit comments