I have a properties class below in my spring-boot project.
@Component @ConfigurationProperties(prefix = \"myprefix\") public class MyProperties { private Str
Check if property1 was set using a @PostContruct in your MyProperties class. If it wasn't you can assign it to another property.
@PostConstruct public void init() { if(property1==null) { property1 = //whatever you want } }