I am learning Java web application. When I tried an example I am getting error
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
My code:
package com.tutorialspoint;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.ui.ModelMap;
@Controller
@RequestMapping("/hello")
public class HelloController {
@RequestMapping(method = RequestMethod.GET)
public String printHello(ModelMap model){
model.addAttribute("message", "Hello Spring MVC Framework!");
return "hello";
}
}
I am referring from : http://www.tutorialspoint.com/spring/spring_mvc_hello_world_example.htm
Please guide me to fix this issue.