新手求助,表单数据提交不到后台?
用的spring mvc框架,
jsp里面的form表单我这样写:
<form class="bookForm" action="save.do" method="post">
但鼠标移动到“save.do”时,有这样的提示:
cannot resolve file 'save.do'
this inspection checks unresolved file references in html
后台controller对应的方法:
@RequestMapping(value = "/save.do", method = RequestMethod.POST)
public String saveBook(Book book {
bookService.saveBook(book);
return "save";
}
}
然后表单数据提交不到后台啊,我错在哪里了,该怎么解