I am working with Spring Boot and property placeholders. I have a property file with the value : date.A=24/07/17
.
I have a class and I am using the @Value
annotation:
@Value("${date.A}")
private LocalDate dateA;
But I am getting the runtime error when running gradle build integrationTest
:
Caused by: java.time.format.DateTimeParseException: Text '24/07/17' could not be parsed: Invalid value for MonthOfYear (valid values 1 - 12): 24
at java.time.format.DateTimeFormatter.createError(DateTimeFormatter.java:1920)
at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1855)
at java.time.LocalDate.parse(LocalDate.java:400)