2012-07-18 38 views
0

我在mac上運行grails 2.0.4,並安裝了用於處理圖像上傳的burningimage插件。無法解析Grails應用程序中的用於burningimage插件的類

我有這個在我的域對象:

import pl.burningice.plugins.image.ast.FileImageContainer 
然而

,Netbeans的說,這是無法解決的類,當我在我的控制器調用imageUploadService,我得到這個錯誤

No such property: imageUploadService for class: wine.WineController 

Netbeans認爲插件已安裝,我可以在.grails文件夾中的項目下看到插件源文件。任何想法如何解決導入?

回答

0

A grails clean重新編譯可能會幫助它看到該類。不過,我在Netbeans中得到這些類型的導入'錯誤',但一切都編譯並運行正常。

嘗試在你的控制器注入業務:

class WineController { 
    def imageUploadService 
    ... 
} 
+0

感謝,我相信加入高清imageUploadService解決了這一問題。 – phauwn 2012-07-19 00:55:46

相關問題