会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
2023年3月17日
@Controller、@RestController、@ResponseBody、@RequestBody、@PathVariable区别
摘要: @Controller @Controller用于标记在一个类上,使用它标记的类就是一个SpringMVC的 Controller类,分发处理器会扫描使用该注解的类的方法,并检测该方法是否使用了 @RequestMapping 注解。 @RequestMapping 注解:默认为get请求,添加va
阅读全文
posted @ 2023-03-17 10:58 CYP-Bk
阅读(93)
评论(0)
推荐(0)
公告