Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R2DBC can not read the URL of oracle database

I try to config the oracle's connection by using application.properties file but it gives me an IllegalArgumentException with message "Invalid URL: r2dbc:oracle:thin:@localhost:1521:orcl", it was fine when I set with the MySql URL. Here is my application.properties:

spring.r2dbc.url=r2dbc:oracle:thin:@localhost:1521:orcl
spring.r2dbc.username=account
spring.r2dbc.password=account

please give me an explanation or solution for this, thank you.

like image 794
Xuân Dũng Đoàn Avatar asked Sep 16 '25 02:09

Xuân Dũng Đoàn


1 Answers

Please try with

spring.r2dbc.url=r2dbc:oracle:thin://localhost:1521:orcl
like image 181
Shawrup Avatar answered Sep 18 '25 18:09

Shawrup