一、第一次整合启动 出现classnotfound 出现在org.springframework.web.filter.CharacterEncodingFilter
处理办法:
WEB-INF 下新建lib 导入所有的包。
二、运行之后出现 404 或者点击页面按钮跳转失败
或者报:Missing URI template variable ‘id’ for method parameter of type long]的错误
示例:
@Controller
@RequestMapping("/book")
public class BookController {
@Autowired
@Qualifier("BookServiceImpl")
private BookService bookService;
@RequestMapping("/allBook")
public String list(Model model)
{
List<Books> list=bookService.queryAllBook();
model.addAttribute("list",list);
return "allbook";
}
@RequestMapping("/toAddBook")
pu