【问题标题】:R2DBC can not read the URL of oracle databaseR2DBC 无法读取 oracle 数据库的 URL
【发布时间】:2021-10-28 02:18:39
【问题描述】:

我尝试使用 application.properties 文件配置 oracle 的连接,但它给了我一个 IllegalArgumentException 消息“无效的 URL:r2dbc:oracle:thin:@localhost:1521:orcl”,当我使用MySql 网址。这是我的 application.properties:

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

请给我一个解释或解决方案,谢谢。

【问题讨论】:

  • 你能添加你的 pom.xml 或 build.gradle 文件吗?

标签: spring kotlin oracle11g properties spring-data-r2dbc


【解决方案1】:

请尝试

spring.r2dbc.url=r2dbc:oracle:thin://localhost:1521:orcl

【讨论】:

  • 天哪,你拯救了我的一天。非常感谢
猜你喜欢
  • 2020-03-07
  • 1970-01-01
  • 1970-01-01
  • 2016-01-10
  • 2017-08-01
  • 1970-01-01
  • 2013-10-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多