read value from application.properties in spring boot 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)