in my applicationContext.xml, i put this
<bean id="something" class="com.to.theController"/>
in com.to.theController
i have this method like
@Controller
public theController{
@RequestMapping(value="/api/add", method= RequestMethod.GET)
public String apiAddHandler(Model model){
model.addAttribute("api", new Api());
return "apiForm";
}
}
when jetty startup, i can see defining beans [something,...
but when i go to http://localhost:8080/api/add
, i get 404 error. what did i miss out? i already debug apiAddHandler method, this method is not called when i call the URL