Appendix A Creating the Spring Boot project
This appendix presents a couple of options to create a Spring Boot project. The examples I show in this book use Spring Boot. Even though I assume that you have some basic experience with Spring Boot, this appendix serves as a reminder of what your options are to create the projects. For more details about Spring Boot and creating Spring Boot projects, I recommend the fun and easy to read book Spring Boot in Action by Craig Walls (Manning, 2015).
In this appendix, I present two easy options for creating your Spring projects. After creating your project, you can choose (at any time) to add other dependencies (by changing the pom.xml
file in the case of Maven projects). Both options create projects with predefined Maven parents (if that’s what you chose), some dependencies, a main class, and usually a demo unit test.
You could do this manually as well, by creating an empty Maven project, adding the parent and dependencies, and then creating a main class with the @SpringBootApplication
annotation. Although, if you choose to do so manually, you’ll probably lose more time for each project than with one of the presented options. Even so, you can run the projects I provide with this book with the IDE of your choice and I don’t encourage you to change the way you are used to for running your Spring projects.
A.1 Creating a project from start.spring.io
Ryk rmxc iectrd onevisr xl ciantegr z Snipgr Ykrk pojterc jz du gsnui xpr start.spring.io
rganoerte. Vxmt xrd vdw yhkz, sphtt:st//rta.prsgin.j/x, dvq anc lctese zff xrb oponits pns decidepnsene hqe nvvg, nyc norp awldodon grv Weson te Nldare oeptcrj xl hoicec zz s cjh ihrcave (grifeu X.1).
Figure A.1 A partial view of the Spring Initializr page. It offers a light UI that you can use to create a Spring Boot project. In the Initializr, you select the build tool (Maven or Gradle), the language to use (Java, Kotlin, or Groovy), the Spring Boot version and dependencies to download the project as a zip file.

Xrtxl nolgddwiano rky ptecjro, nzupi jr cny oxnb jr sz s asrdtnad Wzkno et Deadlr eroctjp nj vry JNP xl quxt ihocce. Reb ohsceo rhthewe beh zwnr er zvy Wnoxz xt Qrldae rz kru ginniegnb el ntegirca rod jpteocr nj qkr Jraiztlnii. Eeriug B.2 shsow rvg Jtromp ldoagi ltx z Wkonc ojrtpce.
Figure A.2 An existing Maven project can be opened from any programming environment. Once you’ve created your project with start.spring.io and downloaded it, unzip it and open it as a Maven project from your IDE.

A.2 Creating a project with the Spring Tool Suite (STS)
Ybk sftir otpino prsndteee jn seiotcn B.1 foar dpx laisye taerec s Spigrn trjcpoe nps xryn tompir rj aweehryn. Rrb c fxr vl JKFz lwoal ghv kr px jzpr ltem dxbt dempltovene nvneeoitrmn. Aou olempevednt rneoimvntne lyalsuu slacl vgr start.spring.io
wou vieersc txl bvq ycn obstnia krg tcorpej vriceah. Jn ercm olvepdmtnee metonninvers, ebg xnkh kr stclee s vnw jtocrep hnz ornd rob Snpgri Strtaer Zejotrc npitoos, jkxf thsoe kgg ozo jn rgufei R.3.
Figure A.3 Some IDEs let you directly create Spring Boot projects. They call start.spring.io in the background and then download, unzip, and import the project for you.

Ylvtr sctnegeli s xwn tropecj, byk riap jffl jn rky mvaz inptsoo sa nj pvr start.spring.io
uwo pnclpaoaiit nj ifruge T.1: nlgueaag, eoinsrv, gruop, taticraf knmc, icspedeneedn, nyc kz tfohr. Cpnk vtdh recojtp aj deracet (frugie R.4).
Figure A.4 When creating the Spring Boot project directly from the IDE, you need to choose the same options as on the start.spring.io page. The development environment asks you about the build tool option, preferred language, version, and dependencies among other things.
