refactor(services): 개발 , 운영 설정 분리

- cloud config 서버에 운영설정 저장
- profile을 통해서 운영/개발 설정분리
This commit is contained in:
hoon7566
2022-03-11 13:24:46 +09:00
parent 55ec97af93
commit 7cda31c68a
10 changed files with 41 additions and 9 deletions

View File

@@ -34,7 +34,7 @@ dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
/*implementation 'org.springframework.boot:spring-boot-starter-amqp'*/
/*implementation 'org.springframework.cloud:spring-cloud-starter-config'*/
implementation 'org.springframework.cloud:spring-cloud-starter-config'
/*implementation 'org.springframework.kafka:spring-kafka'*/
// https://mvnrepository.com/artifact/com.github.gavlyukovskiy/p6spy-spring-boot-starter
implementation 'com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.0'

View File

@@ -3,6 +3,11 @@ server.port: 0
spring:
application:
name: notification-service
config:
import: optional:configserver:http://127.0.0.1:8888
cloud:
config:
name: service
datasource:
url: jdbc:postgresql://localhost:5432/notificationdb
@@ -12,7 +17,7 @@ spring:
jpa:
hibernate:
ddl-auto: validate
ddl-auto: create-drop
generate-ddl: true
open-in-view: false
properties: