javax.servlet.ServletException: Circular view path [student]: would dispatch back to the current han

javax.servlet.ServletException: Circular view path [student]: would dispatch back to the current han

这是说这个Servlet输出的是数据,应该要:

方法1:在类名上加上注解@RestController,这个注解的意思是相当于在控制层上加了@Controller和@ResponseBody,意味着当前控制层中所有方法返回的都是JSON对象

 javax.servlet.ServletException: Circular view path [student]: would dispatch back to the current han

方法2:

javax.servlet.ServletException: Circular view path [student]: would dispatch back to the current han

 

 

上一篇:springboot-1-hello


下一篇:maven无法下载jar解决