How can I have _
(underscore) in my numerical property while injecting it with @Value
annotation in Spring? If I include _
in my value, Spring throws TypeMismatchException
.
.properties file:
min-score=20_000
java class:
@Value("${min-score}")
private int minScore;