I want to use some validation for this POJO:
@Data
public class Simulation {
...
@DecimalMin(value = "${minimum-value}")
private BigDecimal value;
...
}
Using this YAML configuration:
minimum-value: 500
It seems I'm missing something, because I get the following error whenever an instance of Simulation
is created:
Caused by: java.lang.IllegalArgumentException: HV000016: ${minimum-value} does not represent a valid BigDecimal format.