"Groovy: cannot resolve class ..." (import error in LoginController.groovy)

I'm trying to use " : spring -security-core: 2.0-RC2 " (using Grails version 2.3.1), but I have my LoginController.groovy . After Bert's notes ( here and here ), I copied LoginController.groovy from the source location to "myapp \ target \ work \ plugins \ spring-security-core-2.0-RC2 \ grails-app \ controllers \ grails \ plugin \ springsecurity" in my project location is in "myapp \ grails-app \ controllers \ com \ company". Now I get a bunch of import error messages like " Groovy: Unable to resolve class ... " (I added the image below showing all import errors). How can I take care of these errors?

Sorry if this is a trivial question (still used to Grails) and thanks for the help!

enter image description here

+6
source share
1 answer

It seems that GGTS / STS is not quite aware that the plug-in is installed, since these classes are of two jars on which the plug-in depends. Try right-clicking the node project in the tree and launch the Grails> Refresh Dependencies tools. If this is not enough, run Project | Clean to completely recompile.

+9
source

All Articles