gpt4 book ai didi

Grails:dbconsole 没有显示我的域类

转载 作者:行者123 更新时间:2023-12-02 03:41:21 24 4
gpt4 key购买 nike

在这个优秀的博客上,它说在 dbconsole 中我应该能够看到我的表格左侧的小图标,就像他看到“BOOK”一样。 http://www.redtoad.ca/ataylor/2011/11/h2-database-console-in-grails-2/

我正在使用 STS 和 grails 2.0,并且我创建了一个包含多个域类的应用程序(我可以转到 Controller 并查看列表和其他内容),但 dbconsole 不显示任何域类。只需直接进入 INFORMATION_SCHEMA

我的域类在哪里?我可以查看列表并使用 .findBy 之类的东西!!

最佳答案

您需要将 URL 更改为 DataSource.groovy 中的内容

应在此初始屏幕中更改 URL。 enter image description here

关于Grails:dbconsole 没有显示我的域类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9271046/

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