Add properties
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.myoa.engineering.music.soundhoundfound.receiver.infrastructure.client;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.reactive.function.client.WebClient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
public class ProcessorAPIWebClient {
|
||||
|
||||
|
||||
@Value("${webclient.some}")
|
||||
private String baseUrl;
|
||||
|
||||
private final WebClient webClient;
|
||||
|
||||
public ProcessorAPIWebClient(WebClient.Builder webClientBuilder) {
|
||||
this.webClient = webClientBuilder.baseUrl("soundhoundfound-processor:20080")
|
||||
.build();
|
||||
}
|
||||
}
|
||||
6
receiver/src/main/resources/application-development.yml
Normal file
6
receiver/src/main/resources/application-development.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: development
|
||||
import:
|
||||
- classpath:/development/webclient.yml
|
||||
6
receiver/src/main/resources/application-production.yml
Normal file
6
receiver/src/main/resources/application-production.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: production
|
||||
import:
|
||||
- classpath:/production/webclient.yml
|
||||
@@ -0,0 +1,10 @@
|
||||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
profiles:
|
||||
active: development
|
||||
freemarker:
|
||||
enabled: false
|
||||
|
||||
webclient:
|
||||
some: not-test
|
||||
Reference in New Issue
Block a user