Skip to content

Make it more obvious that the user intends to build a full reactive app #22692

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions