会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
全栈老刘
前后端
博客园
首页
新随笔
联系
订阅
管理
2020年9月20日
Controller层编码规范
摘要: 1、Controller层 controller层在MVC设计中属于控制层;设计初衷:接受请求并响应请求;所以,该层尽量轻薄,避免编写涉及业务处理的代码。 前后端分离的开发设计模式下,推荐使用@RestController注解,它相当于@ResponseBody + @Controller的组合使用
阅读全文
posted @ 2020-09-20 21:06 全栈老刘
阅读(894)
评论(0)
推荐(0)
编辑
公告