Before the real rest api service has not been written, in order to facilitate front-end test calls, you can write back-end services, forgery rest service (write false data)
1, the official website: http://wiremock.org/
Download an executable jar: http: //wiremock.org/docs/running-standalone/
2, java -jar start the service
3, springboot dependent on the introduction of pom file
<!-- WireMock --> <dependency> <groupId>com.github.tomakehurst</groupId> <artifactId>wiremock</artifactId> </dependency>