spring @value from properties file code example
Example: How to access a value defined in the application.properties file in Spring Boot
@Value("${userBucket.path}")
private String userBucketPath;
(Assumes you have a property in application.properties called userbucket.path)