Auto configuration for 2.9 #2339
Replies: 7 comments 8 replies
-
From Spring Boot perspective it is indeed a breaking change. Therefore we have to look what should be brought back to make existing auto-configuration working without any changes. The I think all of this related to the spring-projects/spring-boot#31620, however I'm not sure yet in details what is wrong and how to be... |
Beta Was this translation helpful? Give feedback.
-
One thing that comes to mind is, up until 2.8, all users had to do to use the feature was declare a Now for 3.0 with autoconfiguration we can decide whether we want:
Considering the majority of users probably doesn't use the feature, I guess the proper way would be the first approach and optimize for the most common use-case. But of course, I'm again biased and would be happy with the second 😄 Anyway, it's something I think we need to decide before fixing it for 3.0. WDYT? |
Beta Was this translation helpful? Give feedback.
-
I guess we have to reinstate the bootstrapper, at least in 2.9, but maybe it's ok in 3.0 as well (but maybe we should make the Bootstrapper package protected). |
Beta Was this translation helpful? Give feedback.
-
I think I have another solution. Stand by... |
Beta Was this translation helpful? Give feedback.
-
Thanks @garyrussell, looking forward to seeing it. Just my 2c after some consideration - for 3.0, we currently have the If the property is not provided (no auto-configuration for the feature), users would have to explicitly use the Of course, a solution where users might simply declare a |
Beta Was this translation helpful? Give feedback.
-
I was a bit surprised to find that Boot auto configuration disables auto creation of topics. |
Beta Was this translation helpful? Give feedback.
-
I guess my surprise was more that it cannot be changed. I don't really object to it being false by default, but it should at least be configurable via properties/yaml. To work around it in my test, I added
I consider this as a last resort and should never be needed; our documentation (now) clearly states that they need to extend RTCS in one of their |
Beta Was this translation helpful? Give feedback.
-
I wasn't too sure as to where to bring this up - since 2.9 is a bootless version I thought of bringing this up here and we can move it to Boot if necessary.
The code purge we did for
2.9
has likely broken autoconfiguration for that version just as much as it did for 3.0. While for 3.0 we should be able to fix it, I don't see a clean solution for 2.9 since the correspondent boot version isn't aware of the new bootstrap classes.If we're interested in fixing this, maybe we could create a workaround by adding code to the next
boot
release so it can bootstrap the feature itself, but it might be tricky to do it in a manner that is also compatible with 2.8.Perhaps a simpler solution would be adding to the docs that for autoconfiguration to work with
2.9
users need to add the annotation themselves. Since it's an experimental feature that might not be too bad and users would still be able to benefit from the auto configured configuration bean. Doesn't look so clean either, but at least it doesn't require workaround code.Of course, that's at your discretion - let me know if there's anything I can help with.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions