Spring boot
沾血滴蔷薇
这个作者很懒,什么都没留下…
展开
-
Springboot 使用swagger 为controller自动生成接口UI文档
Springboot 使用swagger 为controller自动生成接口UI文档添加依赖主程序添加注解添加,修改配置文件Swagger接口常用注解(用于接口函数or实体类)PS:该文章用于初学者,使用swagger自动生成接口文档。---- by Vincent添加依赖<!--Swagger依赖--><dependency> <groupId>io.springfox</groupId> <artifactId>sprin原创 2020-07-27 08:39:12 · 1124 阅读 · 0 评论 -
springboot 请求其他服务器的http接口
springboot 请求其他服务器的http接口使用Get方式,携带headers请求数据使用Post方式,携带body请求数据使用Get方式,携带headers请求数据//注入@Autowiredprivate RestTemplate restTemplate;@RequestMapping("/FaceInfo")@ResponseBodypublic Object faceInfo(String startTime,String endTime,Integer size ){原创 2020-07-27 08:28:39 · 1986 阅读 · 0 评论