-
Notifications
You must be signed in to change notification settings - Fork 1.6k
RoutingKafkaTemplate configuration is throwing error after spring boot 3.1.2 #2921
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
Comments
May we see some stack trace on the matter? |
Below is the stack trace for the error. I will update the sample to remove swagger over the weekend
|
I think your
But you see, one of your args is Also look: you talked about Spring Boot Apparently, the method you'd like to use is this:
Therefore your code has to be changed just a bit:
I'm closing this one as |
Hi @artembilan , I'm referring to the spring kafka documentation . Unable to figure out if it is spring issue or spring kafka issue. If it is spring kafka we need to update the documentation to reflect the same. I tried to change as per your suggestion, it is still failing. Please find the minimal sample to reproduce issue spring-boot-multiple-producers-consumers.zip Error Stack with spring boot 3.1.3 version. It is working for me till 3.1.2 version
|
I don't see that you have changed guilty code:
it has to be:
I see that you have something in comment, but it is still wrong. Yes, that doc is wrong and I'm more than happy to fix it, but it would be great if you can confirm that it is working one as we discuss here. Thanks |
Hi @artembilan , I can confirm that it is working as expected. Thanks |
Describe the bug
Creation of
RoutingKafkaTemplate
bean is failing after incrementing spring boot version to 3.1.3To Reproduce
download/clone sample project from https://github.com/rajadilipkolli/kafka-experiments/tree/main/kafka-sample/spring-boot-multiple-producers-consumers and start it work. Configuration is present in
KafkaConfig.java
classIn pom.xml increment the spring boot version to 3.1.3, it starts failing.
Expected behavior
It should work in all versions as per documentation.
The text was updated successfully, but these errors were encountered: