This might be something very simple but I cannot seem to get it right. I have a Spring MVC 3.0 application and I would like to use some groovy code.
Problem
When I add Groovy code (Groovy Classes) and I start defining my variables the IDE (SpringSource Tool Suite in my case) tells me "def cannot be resolved to a type"
What I have done
- Created a source folder named src/main/groovy
- Created a .groovy Class added a method with def msg = 'Hello'
- Added Groovy libraries to Classpath
- Did a Project/Clean through the IDE
- The IDE (STS) still tells me "def cannot be resolved to a type"
If I create a simple Groovy Project I can interchange groovy/java with no problem but now that I am adding Groovy to something that I already had it does not seem to be picking up that I am trying to do groovy in those groovy files. I have Groovy on the classpath, Groovy nature and everything. Not sure what else to do so that STS stops flagging my groovy code as errors.
Thanks.
