It is possible since Spring Boot 3.3 to use @Name to change the binding name (see here)
@ConfigurationProperties(prefix = "user")
public class BarcodeConfig {
private String customName;
@Name("details")
private Details customDetails;
//...
}