![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web开发
lllgooo
java爱好者
展开
-
RestTemplate常用的几种请求方式
1、get /** * get请求--exchange方式 */ UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl("http://localhost:8080") .queryParam("name", "张三") ...原创 2019-12-23 16:46:57 · 1146 阅读 · 0 评论 -
将以字节存储在服务器的图片在页面进行显示
页面代码: <div class="photobox" style="width: 280px;height: 260px"> <img src="${photoUrl}" onerror="this.src='${pageContext.request.contextPath }/photo/default.jpg'" style="width: 100%;height:原创 2018-07-19 10:39:14 · 733 阅读 · 0 评论