会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小秫秫儿
博客园
首页
新随笔
联系
管理
订阅
2019年12月21日
@Controller和@RestController的区别?
摘要: 1.@RestController注解相当于@ResponseBody + @Controller合在一起的作用。 2.如果只是使用@RestController注解Controller,则Controller中的方法无法返回jsp页面,或者html,配置的视图解析器 InternalResourc
阅读全文
posted @ 2019-12-21 19:21 兰茶茶
阅读(494)
评论(0)
推荐(0)
编辑
公告