question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

provide a way to use pure spring-r2dbc without spring-data-r2dbc dependency

See original GitHub issue

Right now this is impossible because the last line of R2dbcDsl requires spring-data-r2dbc dependency or else throws some java.lang.NoClassDefFoundError (for example on org/springframework/data/r2dbc/core/R2dbcEntityTemplate).

override fun initialize(context: GenericApplicationContext) {
    super.initialize(context)
    init()

    val properties = r2dbcProperties()

    R2dbcInitializer(properties, optionsCustomizers, transactional).initialize(context)
    R2dbcDataInitializer().initialize(context)
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sdeleuzecommented, Sep 25, 2020

Yeah good point, I guess we should put Spring Data config in a dedicated namespace with data { r2dbc { } } or dataR2dbc { }, same for JDBC.

1reaction
sdeleuzecommented, Sep 24, 2020

@pull-vert spring-r2dbc is very low level and the new spring-data-r2dbc that leverage it pretty lightweight, what is your use case for it?

@gytis-ivaskevicius Initializers are distincts so we should be able to use R2dbcInitializer in a potential Exposed support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Data R2DBC - Reference Documentation
Spring Data R2DBC requires Project Reactor as a core dependency, but it is interoperable with other reactive libraries through the Reactive ...
Read more >
Upgrade from oracle-r2dbc version 0.4.0 to 1.0.0 is resulting in ...
You cannot use R2DBC 1.0.0 with Spring BOot 2.7 (AFAIK) you would need to upgrade to Spring Boot 3.0.0 (as that includes the...
Read more >
Reactive programming with Spring Data R2DBC - Medium
How to build a collaborative web application with Angular, Spring Boot, Spring WebFlux, Spring Data R2DBC and PostgreSQL In my last article, ...
Read more >
Reactive SQL Data Access with Spring Data R2DBC - YouTube
Hi Spring fans! In this installment of Spring Tips we look at reactive SQL data access with the new R2DBC and Spring Data...
Read more >
Using the open-source R2DBC driver | Cloud Spanner
Your application can make use of the reactive database connectivity with Spanner by using the Spanner R2DBC driver. Adding Dependencies. Spring Data users ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found