Get application properties values on Spring Boot

get application properties values on Spring Boot:

public class YamiCode{
	@Value('${property.name}')
	private String propertyNameValue;

	@RequestMapping(value="${other.property.name}")
	public void doNothing(){}
}