报错:This may be the result of an unspecified view, due to default view name generation

今天调试数据同步(从oracle数据库实时同步到mysql)时候,报了个错,能出结果,但是报错,错误如下:
javax.servlet.ServletException: Circular view path [tb]: would dispatch back to the current handler URL [/tb] again.
 Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

最终是因为@Controller没有写成@RestController的原因

猜你喜欢

转载自blog.csdn.net/zxljsbk/article/details/79856178
今日推荐