code:

@Component(value = "CommonPulsarProducerConfiguration")
@ConfigurationProperties(prefix = "pulsar.producer")
public class PulsarProducerProperties {
    private String topicUrl;
    .....
}
@Bean
public PulsarConsumerProperties  demo1() {
     return new PulsarConsumerProperties();
}

Question:

I want to inject another bean with empty properties, but ConfigurationProperties will take effect.

Is there a configuration that allows automatic injection of properties not to be performed?

Comment From: snicoll

This is the issue tracker of the Spring Framework and ConfigurationProperties is part of Spring Boot. Please review the guidelines for contributing that indicates we prefer to use the issue tracker only for bugs and enhancements. Please ask questions on StackOverflow.