【Android知识笔记】Retrofit核心原理

Retrofit 使用方法简介

1. 创建一个 interface 作为 Web Service 的请求集合,在里面用注解(Annotation)写入需要配置的请求方法

public interface GitHubService {
   
    
    
	@GET("users/{user}/repos")
	Call<List<Repo>> listRepos(@Path(

猜你喜欢

转载自blog.csdn.net/lyabc123456/article/details/131239185