我跟随Burt Beckwith(Grails开发人员和作者)使用Heroku,如here in Grails book所示。 (请参阅此链接顶部的导入声明 - 这是给我的问题)。Grails/IntelliJ:简单的groovy导入问题?
我增加了以下内容BuildConfig.groovy为伯特表示:
runtime 'postgresql:postgresql:8.4-702.jdbc3' // in the dependencies section as described
compile ':heroku:1.0.1' // in the plugins section as described.
随后的IntelliJ提示我更新与BuildConfig的变化,这是我做的IDE。我也退出并重新启动的IntelliJ来看看是否有可能得到摆脱导入错误:
import grails.plugin.heroku.PostgresqlServiceInfo
它没有摆脱进口错误,然后抱怨的时候我做加法的:
PostgresqlServiceInfo info = new PostgresqlServiceInfo()
在Bootstrap类中,如示例中所示。我在做什么错了/我该如何解决这类问题?
只是踢,从命令行将'cd'放入基本应用程序目录。然后运行'grails clean',然后执行'grails compile'。 – grantmcconnaughey