-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Description
A recent PR made me wonder if, rather than allowing users to switch off the creation of Spring Data repositories, we should allow them to switch off the whole infrastructure, (including repositories).
I don't remember why we've introduced a boolean flag to disable repositories specifically but it moved to a type
enum where users can define if they want to work with imperative or reactive. It turns out that more and more drivers are offering both mode so auto
actually means both.
This also means that if you don't do anything, you get both a template and a reactive template. This can be what you want if you want to use the imperative style on startup but it would be nice if we offered a way to easily back-off.
Concretely we'd have a spring.data.<xxx>.type
and selecting imperative means that the whole reactive infra would not be configured.