I use this configure
application.properties
user.name.auth=s-SGH-S0007
@Value("${user.name.auth}")
private String userNameAuth;
when I try to get a value from a given property, then I get an error.
nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'user.name.auth' in value "${user.name.auth}"
how can I get around this error (without using yaml)?