我第一次尝试使用Spring来使用反向工程生成代码。
在安装Postgresql addon之后:
osgi -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
我尝试下一个命令:
数据库内省--模式用户
我确信我的数据库中有用户模式(当我使用TAB键时,我得到了具有正确区分大小写的其他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发布于 2012-01-06 08:44:10
我是在遇到类似的问题后才问到这个问题的,我想,即使这个问题已经一岁了,我也会回答这个问题。
我的问题是,我没有在database.url属性中包含数据库名。在添加它之后,数据库内省就开始工作了。
database.url=jdbc\:postgresql\://localhost\:5432/<dbname>奇怪的是,选项卡完成工作并显示了模式选项,这给人一种错误的印象,认为数据库配置一切都很好。
https://stackoverflow.com/questions/4980228
复制相似问题