0
点赞
收藏
分享

微信扫一扫

@RestController和@Controller

8052cf60ff5c 2022-02-09 阅读 88

之前在做项目的时候使用的是@RestController, 导致方法返回路径string并不会跳转页面。

后面改成@Controller问题才得到解决。

@RestController应该是等同于@Controller+@RespondBody

举报

相关推荐

0 条评论