Grokking Spring Boot
Vote

0% completed

​

Typed Configuration Properties

An operator wrote booking.payments.timeout=3 seconds in a settings file next to the jar. The booking service refused to start and printed this.

*************************** APPLICATION FAILED TO START *************************** Description: Failed to bind properties under 'booking.payments.timeout' to java.time.Duration: Property: booking.payments.timeout Value: "3 seconds" Origin: URL [file:config/application.properties] - 1:26 Reason: failed to convert java.lang.String to @org.springframework.boot.context.properties.bind.DefaultValue java.time

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content