views:

298

answers:

1

I'm trying out intelliJ's commercial editor with spring mvc 3.0

It seemed to have imported the files into the lib, but I guess I am missing something. I have downloaded spring 3.0 in my downloads folder, but I haven't imported them into the editor since it set things up for me automatically.

The annotation: @RequestMapping is not being picked up, so I guess the required libraries are not there.

Trying to import these libraries doesn't seem to work, how to I import my fresh set of spring .jar's ?

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
+1  A: 

You need to adjust your module dependencies to include the downloaded jars.

Paul McKenzie
where can I do that from?
Blankman
file-->project structure. select modules, under project settings, on left hand side, select dependencies, add...(using version 8)
Paul McKenzie