Why using Spring’s @Value annotation is bad @Value Configuration is an important topic of every application which has more than a couple of hundred lines of code. In case you are using Spring, you would typically use Spring’s @Value annotation to load values from a Java properties file. This could look like this: 12345678 @Servicepublic class MyService { @Value("${my.config.property.key}") private String someConfigValue; //...} If you do so, Spring would inject the […]