https://api.vvhan.com/api/avatar/boy

技术博客分享

安卓前端连接springboot后端

安卓前端连接springboot后端

安卓前端连接springboot后端

本文仅记录安卓如何通过get请求获取springboot后端传来的json数据并解析,对springboot后端如何编写暂无涉及

  1. 准备好工具类HTTPUtils,此工具类用于连接后端的所要求的path路径,只需填入url路径即可,会返回后端传来的String字符串数据