Circular view path [to]: would dispatch back to the current handler URL [/to] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
报错原因是 controller类上的映射方法没有加@ResponseBody注解,并且返回类型是void