javax.servlet.ServletException: Circular view path [success]: would dispatch back to the current handler URL [/bat/success] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

只需要把Controller的注解改成@RestController运行后即可。

@RestController是@Controller和@ResponseBody的结合。(Ctrl进入@RestController就可以看到)
SpringBoot报错Circular view path [success]: would dispatch back to the current handler URL [/bat/succe

相关文章: