reference:https://spring.io/guides/gs/rest-service/
Follow the links above and use Gradle build. Because total new ... The problems encountered during this period are as follows:
1. Gradlew is not a command:
Reason: Install Gradle when the default is not Gradlew, resolved: cmd Run:gradle Wrapper (understanding: For the Gradle version of the liberation? )
2... \gradlew build:cannot Download Gradle xxx Time Out
Reason: Proxy setting. Solution: Essay title: Proxy Setting, Gradle section ...
3.. \gradlew build--debug failed, and get info "illegal character: \65279"
Reason:.. #TODO: Search get, "illegal character: \65279" is BOM (byte order mark), should be used to mark the byte order, because the Java file is copied directly, so the inclusion of this character
Solution: In notepad++ encode in UTF8 without BOM, if ANSI can be satisfied also.
Building a RESTful Web Service