springboot接口报错:would dispatch back to the current handler URL

springboot接口报错:would dispatch back to the current handler URL

spring对于读取映射地址的混乱,主要是写的地址@RequestMapping("/xxx")和view里面的映射地址重复,需要在接口上使用

@ResponseBody注解,如:


 @ResponseBody
    public Result login(HttpServletRequest request,@RequestBody SysUser user) { 
...
}


qrcode