Postman是一个流行的API平台,它优化了API开发生命周期的各个步骤。Postman可以用来在不写任何代码的情况下测试我们的API。我们可以使用独立的应用程序或浏览器扩展。
在本教程中,我们将看到在使用Postman时如何上传文件和JSON数据。
2.1. 依赖项
我们定义了一个基本的spring应用程序,在_pom.xml_中使用了_spring-boot-starter-web_依赖项:
`<dependency>`
`<groupId>`org.springframework.boot`</groupId>`
`<artifactId>`spring-boot-starter-web`</artifactId>`
`</dependency>`
大约 4 分钟