摘要: 1、Controller层 controller层在MVC设计中属于控制层;设计初衷:接受请求并响应请求;所以,该层尽量轻薄,避免编写涉及业务处理的代码。 前后端分离的开发设计模式下,推荐使用@RestController注解,它相当于@ResponseBody + @Controller的组合使用 阅读全文
posted @ 2020-09-20 21:06 全栈老刘 阅读(894) 评论(0) 推荐(0) 编辑