【问题标题】:DBRE Spring Roo problemDBRE Spring Roo 问题
【发布时间】:2011-02-12 19:48:55
【问题描述】:

我第一次尝试使用 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

我尝试下一个命令:

数据库自省--schema USER

我确定我的数据库中有 USER 模式(当我使用 TAB 键时,我得到了具有正确区分大小写的其他 shema 名称的 USER),但 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

【问题讨论】:

    标签: postgresql reverse-engineering spring-roo


    【解决方案1】:

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

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-12
      • 1970-01-01
      相关资源
      最近更新 更多