Grokking Spring Boot
0% completed
Externalized Configuration
This is the constructor of PaymentClient, the class in the booking service that calls the payment provider:
@Component public class PaymentClient { private static final Logger log = LoggerFactory.getLogger(PaymentClient.class); private final String baseUrl; private final Duration timeout; public PaymentClient( @Value("${booking.payments.base-url}") String baseUrl, @Value("${booking.payments.timeout:2s}") Duration timeout) { this.baseUrl = baseUrl; this.timeout = timeout; log
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%