diff --git a/build.gradle b/build.gradle index 2d4e10a1..45a70d7c 100755 --- a/build.gradle +++ b/build.gradle @@ -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' } @@ -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() diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index eb1f9d9b..d1a02fbd 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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 \ No newline at end of file +management: + endpoints: + web: + exposure: + include: refresh \ No newline at end of file