- Mastering Spring Boot 2.0
- Dinesh Rajput
- 280字
- 2021-06-25 21:29:12
Developing your first Spring Boot application
Let's create a Hello World REST application in Java, and create a simple REST service that returns the Hello World message on request. In this application, we will use Maven to build this project.
You would have noticed that whenever you create a simple project structure, you face some difficulties to create it. Where will you place configuration files, properties files, and so on, and build files with dependencies? Traditionally, to resolve this problem and find an easy solution for the project structure, you would have to go to Google and search multiple blogs. I have spent quite some time doing this!
However, things have changed because the Spring Boot team has provided a solution for the project structure. This is the Spring Boot Initializr.
The Spring Boot Initializr provides solutions to all these problems related to setup work, and it creates a more traditional Java project structure.
The Spring Boot Initializr is nothing but a web application that can create a Spring Boot project structure for you. It generates a basic project structure, either a Maven or Gradle build specification; it depends on you what you choose from the menu. But remember, it doesn't generate any application code. You can use this Spring Initializr in several ways:
- Spring Boot Initializr through a web-based interface (https://start.spring.io)
- You can also use it through an IDE such as Spring Tool Suite (STS) and IntelliJ IDEA
- Using the Spring Boot CLI
We will explore Spring Initializr with Spring Boot CLI in Chapter 3, Getting Started with Spring CLI and Actuator. Let's check the other two ways of using Spring Initializr and start with the web-based interface.
- 完全掌握Office 2010高效辦公超級手冊
- Articulate Studio Cookbook
- 善用圖表:一看就懂的商業(yè)數(shù)據(jù)表達術(shù)
- Word/Excel/PPT/PS/移動辦公Office 5合1無師自通
- Word/Excel 2010辦公應用從入門到精通
- Word/Excel/PPT 2016 商務應用傻瓜書
- 跟李銳學Excel數(shù)據(jù)分析
- 新編電腦選購、組裝、維護與故障處理從入門到精通
- 和秋葉一起學:秒懂Word(全彩版)
- 新編Word/Excel/PPT 2016從入門到精通
- 中文版AutoCAD 2016園林設計從入門到精通
- Excel高效辦公:VBA范例應用(修訂版)
- 巧學巧用Excel函數(shù):掌握核心技能,秒變數(shù)據(jù)分析高手
- Excel 2007表格·數(shù)據(jù)·圖表完全自學手冊
- Excel 2013操作與技巧