在这个网址:Injecting JSP from Spring MVC controllerJava @Model Annotation,我可以导入哪个库来使用它?
他们下面的代码片段:
@RequestMapping(value = "/widgets.html", method = RequestMethod.POST)
public ModelAndView widgets(@Model Fruit fruit, @RequestParam("texture") String texture)
我的问题,@Model注释,什么库需从国外进口,以利用它?
谢谢你在前进, 韦斯
塞萨尔:从谷歌搜索见状过,这是一个我需要使用。我包含了导入,但是当将@Model注释放在类似于我的原始文章中的代码片段的方法中时,它会提供以下内容:“模型不是注释类型”。知道为什么? – wesg 2014-10-30 15:40:16