Skip to content

Commit

Permalink
Merge pull request #419 from TrandPick/development
Browse files Browse the repository at this point in the history
refactor: 배포환경에 따른 변수명 변경 (#415)
  • Loading branch information
angelSuho authored Aug 13, 2023
2 parents df1adc8 + 96562ec commit a687135
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
@RequiredArgsConstructor
public class KafkaConfig {

@Value("${kafka.host}")
private String kafkaHost;

@Value("${kafka.port}")
private String kafkaPort;

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ logging.level:
hibernate.SQL: error

kafka:
port: ${custom.kafka.devPort}
host: "localhost:"
port: ${custom.kafka.devPort}
1 change: 1 addition & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ custom:
redis:
host: ${redis.host}
kafka:
host: "my-cluster-kafka-bootstrap.my-kafka-project.svc.cluster.local:"
port: ${custom.kafka.port}
1 change: 1 addition & 0 deletions src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ custom:
redis:
host: ${redis.host}
kafka:
host: "localhost:"
port: ${custom.kafka.port}

0 comments on commit a687135

Please sign in to comment.