我跟隨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