简体   繁体   中英

Unable to resolve Class for burningimage plugin in grails app

I'm running grails 2.0.4 on a mac, and installed the burningimage plugin to handle image uploads.

I have this at in my domain object:

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

however, netbeans says it's unable to resolve the class, and when I call imageUploadService in my controller, I get this error

No such property: imageUploadService for class: wine.WineController

Netbeans believes the plugin is installed, and I can see the plugin source files under the project in the .grails folder. Any idea how to resolve the import?

A grails clean and recompile might help it see the class. However I get these type of import 'errors' in Netbeans but everything compiles and runs fine.

Try injecting the service in your controller:

class WineController {
   def imageUploadService
   ...
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM