- Hands-On Reactive Programming in Spring 5
- Oleh Dokuka Igor Lozynskyi
- 190字
- 2021-07-23 16:36:19
Bootstrapping a Spring application
To implement our usecase, we are using the well-known Spring modules Spring Web and Spring Web MVC. Our application will not use the new features of Spring 5, so it will run similarly on Spring Framework 4.x. To simplify our development process and even more, we are leveraging Spring Boot, which is described in more detail later. To bootstrap our application, we may configure and download a Gradle project from the Spring Initializer website at start.spring.io. For now, we need to select the preferred Spring Boot version and dependency for the web (the actual dependency identifier in Gradle config will be org.springframework.boot:spring-boot-starter-web), as shown in the following screenshot:
Alternatively, we may generate a new Spring Boot project using cURL and the HTTP API of the Spring Boot Initializer site. The following command will effectively create and download the same empty project with all the desired dependencies:
curl https://start.spring.io/starter.zip \
-d dependencies=web,actuator \
-d type=gradle-project \
-d bootVersion=2.0.2.RELEASE \
-d groupId=com.example.rpws.chapters \
-d artifactId=SpringBootAwesome \
-o SpringBootAwesome.zip
- 網(wǎng)絡云百問百答
- Cisco OSPF命令與配置手冊
- 物聯(lián)網(wǎng)工程規(guī)劃技術
- Truffle Quick Start Guide
- Hands-On Chatbots and Conversational UI Development
- 無人機通信
- Spring Cloud微服務架構進階
- Mastering TypeScript 3
- 智慧光網(wǎng)絡:關鍵技術、應用實踐和未來演進
- Mastering Dart
- Kong網(wǎng)關:入門、實戰(zhàn)與進階
- 設備監(jiān)控技術詳解
- React Design Patterns and Best Practices(Second Edition)
- 新IP:面向泛在全場景的未來數(shù)據(jù)網(wǎng)絡
- 網(wǎng)絡信息安全工程技術與應用分析