Spring Property Injection in a final attribute @Value – Java

The only way you can inject values into a final field is through Constructor Injection. Everything else would be an awful hack on Spring’s side.

Leave a Comment