![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot
周二也被占用
学无止境
展开
-
springboot RESTful风格的API接口开发
摘要 API接口要求返回的格式是 application/json,我们知道网页返回的格式一般是 text/html,因此,SpringBoot为写接口,提供了两种实现方式:类注解 和 方法注解。类注解 @RestController我们只需要在类上写上注解 @RestController,那么此Controller返回格式就都是text/json。如下:@RestCon...原创 2018-06-09 20:08:19 · 773 阅读 · 0 评论 -
idea取消could not autowire. no beans of 'xxxx' type found的错误提示
在Idea的spring工程里,经常会遇到Could not autowire. No beans of ‘xxxx’ type found的错误提示。但程序的编译和运行都是没有问题的,这个错误提示并不会产生影响。但红色的错误提示在有些有强迫症的程序员眼里,多多少少有些不太舒服。原因:spring auto scan配置,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错...转载 2019-03-24 12:15:03 · 237 阅读 · 0 评论