|
|
|
|
|
|
57
|
Set up the project
|
57
|
Set up the project
|
|
58
|
------------------
|
58
|
------------------
|
|
59
|
|
59
|
|
|
60
|
-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).
|
|
|
|
|
|
60
|
+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/) or [Building Java Projects with Gradle](/guides/gs/gradle/).
|
|
61
|
|
61
|
|
|
62
|
### Create the directory structure
|
62
|
### Create the directory structure
|
|
63
|
|
63
|
|
|
|
|
|
|
|
115
|
</project>
|
115
|
</project>
|
|
116
|
```
|
116
|
```
|
|
117
|
|
117
|
|
|
118
|
-This guide is using [Spring Boot's starter POMs](/guides/gs/spring-boot/content).
|
|
|
|
|
|
118
|
+This guide is using [Spring Boot's starter POMs](/guides/gs/spring-boot/).
|
|
119
|
|
119
|
|
|
120
|
Note to experienced Maven users who are unaccustomed to using an external parent project: you can take it out later, it's just there to reduce the amount of code you have to write to get started.
|
120
|
Note to experienced Maven users who are unaccustomed to using an external parent project: you can take it out later, it's just there to reduce the amount of code you have to write to get started.
|
|
121
|
|
121
|
|
|
|
|
|
|
|
282
|
|
282
|
|
|
283
|
[spring-boot-maven-plugin]: https://github.com/SpringSource/spring-boot/tree/master/spring-boot-maven-plugin
|
283
|
[spring-boot-maven-plugin]: https://github.com/SpringSource/spring-boot/tree/master/spring-boot-maven-plugin
|
|
284
|
|
284
|
|
|
285
|
-> **Note:** The procedure above will create a runnable JAR. You can also opt to [build a classic WAR file](/guides/gs/convert-jar-to-war/content) instead.
|
|
|
|
|
|
285
|
+> **Note:** The procedure above will create a runnable JAR. You can also opt to [build a classic WAR file](/guides/gs/convert-jar-to-war/) instead.
|
|
286
|
|
286
|
|
|
287
|
Run the service
|
287
|
Run the service
|
|
288
|
-------------------
|
288
|
-------------------
|