You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Quarkus中使用Reactive Datasource指定Postgres Schema

配置Quarkus Reactive PostgreSQL客户端连接指定Schema

有两种常用方式可以配置连接指定的Schema:

  • 在连接URL中添加参数
    修改你的数据源URL配置,在末尾加上currentSchema参数指定目标Schema:

    quarkus.datasource.reactive.url=postgresql://<host>:<port>/<database>?currentSchema=your_target_schema
    
  • 使用Quarkus专属配置项
    直接在配置文件中添加单独的Schema配置项:

    quarkus.datasource.reactive.postgresql.schema=your_target_schema
    

如果使用YAML格式配置文件,对应写法为:

quarkus:
  datasource:
    reactive:
      postgresql:
        schema: your_target_schema

内容的提问来源于stack exchange,提问作者Jaiprasad

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.25 20:06:22