-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KafkaBinderConfigurationProperties is still not showing up in the generated JSON for config props #2640
Comments
@rod2j I created this issue in Spring Boot to address the root cause of this behavior: spring-projects/spring-boot#34031. Thanks for reporting this issue. |
@rod2j This issue is now fixed through the above-referenced commit. Please try it with version |
@sobychacko You might want to try removing @ConfigurationProperties
@Bean
KafkaBinderConfigurationProperties configurationProperties(
KafkaProperties kafkaProperties) {
return new KafkaBinderConfigurationProperties(kafkaProperties);
} I think this will give the annotation processor enough information to know that constructor binding cannot be used. |
@philwebb We also noticed that adding the |
@sobychacko I think so, but I've not confirmed that for sure. It's certainly a bug if it doesn't. |
Re-opening this issue until we verify the suggestion made by @philwebb ^^. |
@philwebb Moving |
Since the |
It should be fine to leave it, it just looks a bit odd because it's not actually being used for autowiring. |
Re-opened again until we have a resolution for the native issue discussed above. |
Spring Boot fixed the issues, due to why we needed to add |
- Earlier, we had to add Autowired on KafkaBinderConfigurationProperties constructor as there were some issues with runtime hints generation which caused issues when running an app in native mode. Spring Boot fixed these issues and we can remove this unnecessary Autowired from the constructor. See the following issues from Spring Boot for more details. spring-projects/spring-boot#34507 spring-projects/spring-boot#35564 Resolves spring-cloud#2640
- Earlier, we had to add Autowired on KafkaBinderConfigurationProperties constructor as there were some issues with runtime hints generation which caused issues when running an app in native mode. Spring Boot fixed these issues and we can remove this unnecessary Autowired from the constructor. See the following issues from Spring Boot for more details. spring-projects/spring-boot#34507 spring-projects/spring-boot#35564 Resolves spring-cloud#2640
Issue spring-cloud-stream-binder-kafka#750, despite having been closed, is still present in version 4.0.1 of Spring Cloud Stream.
KafkaBinderConfigurationProperties still has a single parameterized constructor, so "ConstructorBinding" is still automatically applied,
resulting in a spring-configuration-metadata.json missing all the properties of the KafkaBinderConfigurationProperties class, except those of the KafkaProperties class passed as an argument of the constructor.
The text was updated successfully, but these errors were encountered: