Skip to content

Commit

Permalink
[chore] spring config 구성 등록 (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlgnszx committed Sep 30, 2024
1 parent 4c2fe32 commit 8b5a625
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'org.springframework.boot' version '3.3.1'
id 'org.springframework.boot' version '3.3.2'
id 'io.spring.dependency-management' version '1.1.5'
id 'java'
id 'java-library'
id 'jacoco'
}

Expand Down Expand Up @@ -99,7 +99,9 @@ dependencies {
// slack
implementation 'com.slack.api:slack-api-client:1.30.0'


//config-server
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
}
tasks.named('test') {
useJUnitPlatform()
Expand Down
18 changes: 12 additions & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
spring:
application:
name: app-server
config:
import: optional:configserver:http://127.0.0.1:8087
cloud:
config:
uri: http://127.0.0.1:8087
name: application
profiles:
active: prod
active: local

springdoc:
swagger-ui:
path: /swagger-ui.html
management:
endpoints:
web:
exposure:
include: refresh

0 comments on commit 8b5a625

Please sign in to comment.