官术网_书友最值得收藏!

Environment Setup

This chapter focuses on the development environment setup and configurations. If you are familiar with the tools and libraries, you could skip this chapter and continue with Chapter 3, Domain-Driven Design, where you can explore domain-driven design (DDD).

This chapter will cover the following topics:

  • Spring Boot
  • REST
  • An embedded web server
  • Testing using Postman
  • Maven

This book will use only the open source tools and frameworks for examples and code. This book will also use Java 11 as its programming language, while the application framework will be based on the Spring Framework. It will also make use of Spring Boot for developing microservices.

Eclipse, IntelliJ IDEA, and NetBeans' Integrated Development Environment (IDE) provide state-of-the-art support for both Java and JavaScript, and is sufficient for our needs. These have evolved a lot over the years and have built-in support for most of the technologies used by this book, including Maven, and Spring Boot. Therefore, I would recommend using any of these IDEs. You are, however, better off using IDEs that support Java 11.

We will use Spring Boot to develop the REST services and microservices. Opting for the most popular offering of Spring Framework, Spring Boot, or its subset, Spring Cloud, in this book was a conscious decision. Because of this, we don't need to write applications from scratch and it provides the default configuration for most of the technologies used in cloud applications. A Spring Boot overview is provided in Spring Boot's configuration section. If you are new to Spring Boot, this would definitely help you.

We will use Maven as our build tool. As with the IDE, you can use whichever build tool you want; for example, Gradle, or Ant with Ivy. We will use an embedded Jetty server as our web server, but another alternative is to use an embedded Tomcat web server. We will also use the Postman extension of Chrome for testing our REST services.

We will start with Spring Boot configurations. You can either create fresh new projects or import the project (Maven) using source code hosted on GitHub.

主站蜘蛛池模板: 景洪市| 大足县| 顺平县| 永靖县| 石景山区| 清水县| 福鼎市| 澄江县| 洮南市| 永丰县| 永州市| 萨嘎县| 五华县| 麻城市| 孝感市| 乳源| 改则县| 崇州市| 天门市| 胶州市| 江达县| 宜都市| 扎兰屯市| 锡林郭勒盟| 庐江县| 广宗县| 太原市| 开远市| 沂源县| 花莲市| 中山市| 承德县| 中江县| 霍林郭勒市| 图木舒克市| 柳江县| 镇原县| 东山县| 富民县| 石嘴山市| 灵川县|