The infrastructure that Spring Boot uses can be used in your own project in the exact same way. You commented in @zmitrok answer about a "unknown property" warning. That is because your property has no meta-data so the IDE does not know about it.
I would strongly advice you not to use @Value if you can as it is rat
https://stackoverflow.com/questions/32058814/spring-boot-custom-variables-in-application-properties