|
|
|
|
|
|
36
|
How to complete this guide
|
36
|
How to complete this guide
|
|
37
|
--------------------------
|
37
|
--------------------------
|
|
38
|
|
38
|
|
|
39
|
-Like all Spring's [Getting Started guides](/getting-started), you can start from scratch and complete each step, or you can bypass basic setup steps that are already familiar to you. Either way, you end up with working code.
|
|
|
|
|
|
39
|
+Like all Spring's [Getting Started guides](guides/gs), you can start from scratch and complete each step, or you can bypass basic setup steps that are already familiar to you. Either way, you end up with working code.
|
|
40
|
|
40
|
|
|
41
|
To **start from scratch**, move on to [Set up the project](#scratch).
|
41
|
To **start from scratch**, move on to [Set up the project](#scratch).
|
|
42
|
|
42
|
|
|
|
|
|
|
|
44
|
|
44
|
|
|
45
|
- [Download][zip] and unzip the source repository for this guide, or clone it using [git](/understanding/git):
|
45
|
- [Download][zip] and unzip the source repository for this guide, or clone it using [git](/understanding/git):
|
|
46
|
`git clone https://github.com/springframework-meta/gs-rest-service.git`
|
46
|
`git clone https://github.com/springframework-meta/gs-rest-service.git`
|
|
47
|
- - cd into `gs-rest-service/initial`
|
|
|
|
|
|
47
|
+ - cd into `gs-rest-service/initial`.
|
|
48
|
- Jump ahead to [Create a resource representation class](#initial).
|
48
|
- Jump ahead to [Create a resource representation class](#initial).
|
|
49
|
|
49
|
|
|
50
|
**When you're finished**, you can check your results against the code in `gs-rest-service/complete`.
|
50
|
**When you're finished**, you can check your results against the code in `gs-rest-service/complete`.
|
|
|
|
|
|
|
55
|
Set up the project
|
55
|
Set up the project
|
|
56
|
------------------
|
56
|
------------------
|
|
57
|
|
57
|
|
|
58
|
-First you set up a basic build script. You can use any build system you like when building apps with Spring, but the code you need to work with [Maven](https://maven.apache.org) and [Gradle](http://gradle.org) is included here. If you're not familiar with either, refer to [Building Java Projects with Maven](../gs-maven/README.md) or [Building Java Projects with Gradle](../gs-gradle/README.md).
|
|
|
|
|
|
58
|
+First you set up a basic build script. You can use any build system you like when building apps with Spring, but the code you need to work with [Maven](https://maven.apache.org) and [Gradle](http://gradle.org) is included here. If you're not familiar with either, refer to [Building Java Projects with Maven](guides/gs/maven/content) or [Building Java Projects with Gradle](guides/gs/gradle/content).
|
|
59
|
|
59
|
|
|
60
|
### Create the directory structure
|
60
|
### Create the directory structure
|
|
61
|
|
61
|
|