You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to build a native image for an app which using R2DBC to access PostgreSQL.
Not sure why but with the following docker compose file the SPRING_R2DBC_URL is not recognised, I receive:
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a ConnectionFactory: 'url' attribute is not specified and no embedded database could be configured.
Reason: Failed to determine a suitable R2DBC Connection URL
If I bake the configuration into the image then the connection to PostgreSQL works
spring:
application:
name: postgresql-r2dbcsql.init.mode: always# If we bake the configuration into the image then the connection to PostgreSQL worksr2dbc:
url: r2dbc:postgresql://db:5432/postgresusername: postgrespassword: secret
Interestingly with JDBC the external configuration works, for R2DBC do I need any specific configuration ?
Hi,
I would like to build a native image for an app which using R2DBC to access PostgreSQL.
Not sure why but with the following docker compose file the SPRING_R2DBC_URL is not recognised, I receive:
If I bake the configuration into the image then the connection to PostgreSQL works
Interestingly with JDBC the external configuration works, for R2DBC do I need any specific configuration ?
I build the image using:
I created an example here: https://github.com/altfatterz/learning-spring/tree/master/postgresql-r2dbc
Any feedback appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: