gpt4 book ai didi

postgresql - DBRE Spring Roo 问题

转载 作者:行者123 更新时间:2023-11-29 12:06:45 25 4
gpt4 key购买 nike

我第一次尝试使用 Spring Roo 来生成使用逆向工程的代码。

通过以下方式安装 Postgresql 插件后:

osgi install --url http://spring-roo-repository.springsource.org/release/org/springframework/roo/wrapping/org.springframework.roo.wrapping.postgresql-jdbc3/8.4.701.0001/org.springframework.roo.wrapping.postgresql-jdbc3-8.4.701.0001.jar

我尝试下一个命令:

database introspect --schema USER

我确信我的数据库中有 USER 模式(当我使用 TAB 键时,我得到了 USER 和其他区分大小写的 shema 名称)但是 spring 响应是:

roo> database introspect --schema

USER information_schema pg_catalog
pg_toast_temp_1 public
roo> database introspect --schema USER
Schema 'USER' does not exist or does not have any tables. Note that the schema names of some databases are case-sensitive

最佳答案

我在遇到类似问题后提出了这个问题,我想我会回答这个问题,即使这个问题已经存在一年了。

我的问题是我没有在 database.url 属性中包含数据库名称。添加后,数据库内省(introspection)开始工作。

database.url=jdbc\:postgresql\://localhost\:5432/<dbname>

奇怪的是,选项卡完成工作并显示模式选项,给人一种数据库配置一切正常的错误印象。

关于postgresql - DBRE Spring Roo 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4980228/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com