摘要: 1、@Controller: 标注展示层组件(Bean),但是目前该功能与 @Component 相同,用来创建处理http请求的对象 Spring4之后加入的注解,原来在@Controller中返回json需要@ResponseBody来配合,如果直接用@RestController替代@Cont 阅读全文
posted @ 2019-08-27 21:02 爱笑的berg 阅读(981) 评论(0) 推荐(0) 编辑