forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
124 lines (88 loc) · 5.04 KB
/
index.html
File metadata and controls
124 lines (88 loc) · 5.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
# The name of your project
title: Spring Boot
badges:
# Specify your project's twitter handle, if any. Delete if none.
twitter: springboot
# Customize your project's badges. Delete any entries that do not apply.
custom:
- name: Source (GitHub)
url: https://github.com/spring-projects/spring-boot
icon: github
- name: Issues (GitHub)
url: https://github.com/spring-projects/spring-boot/issues
icon: tracking
- name: CI (Bamboo)
url: https://build.springsource.org/browse/BOOT
icon: ci
- name: StackOverflow
url: https://stackoverflow.com/questions/tagged/spring-boot
icon: stackoverflow
# - name: Metrics (SonarQube)
# url: https://sonar.springsource.org/dashboard/index/org.springframework.data:spring-data-jpa
# icon: metrics
---
<!DOCTYPE HTML>
<html lang="en-US">
{% capture billboard_description %}
Takes an opinionated view of building production-ready Spring applications. Spring Boot favors convention over configuration and is designed to get you up and running as quickly as possible.
{% endcapture %}
{% capture main_content %}
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
## Features
* Create stand-alone Spring applications
* Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
* Provide opinionated 'starter' POMs to simplify your Maven configuration
* Automatically configure Spring whenever possible
* Provide production-ready features such as metrics, health checks and externalized configuration
* Absolutely <strong>no code generation</strong> and <strong>no requirement for XML</strong> configuration
The [reference guide](https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle) includes detailed descriptions of all the features, plus an extensive [howto](https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#howto) for common use cases.
<span id="quick-start"></span>
## Quick Start
If you are Java developer you can use [start.spring.io](https://start.spring.io/) to generate a basic project, follow the "Quick Start" example below, or read the reference documentation [getting started](https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#getting-started) guide.
{% include download_widget.md %}
<br/>
`hello/SampleController.java`
```java
package hello;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.stereotype.*;
import org.springframework.web.bind.annotation.*;
@Controller
@EnableAutoConfiguration
public class SampleController {
@RequestMapping("/")
@ResponseBody
String home() {
return "Hello World!";
}
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleController.class, args);
}
}
```
## Spring Boot CLI
Spring Boot ships with a command line tool that can be used if you want to quickly prototype with Spring. It allows you to run Groovy scripts, which means that you have a familiar Java-like syntax, without so much boilerplate code. Follow the instructions in our main documentation if you want to [install the Spring Boot CLI](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-installing-the-cli).
{% endcapture %}
{% capture related_resources %}
### Sample Projects
* [Simple](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-simple)
* [Embedded Tomcat](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-tomcat)
* [Batch](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-batch)
* [Data JPA](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-jpa)
* [Integration](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-integration)
* [more...](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples)
### Getting Started Guides
* [Building an Application with Spring Boot]({{site.main_site_url}}/guides/gs/spring-boot)
* [Building a RESTful Web Service]({{site.main_site_url}}/guides/gs/rest-service)
* [Serving Web Content]({{site.main_site_url}}/guides/gs/serving-web-content)
* [Converting a Spring Boot JAR Application to a WAR]({{site.main_site_url}}/guides/gs/convert-jar-to-war)
### External Links
* [Spring Tips: Demystifying Bootiful Magic](https://spring.io/blog/2016/12/14/spring-tips-demystifying-bootiful-magic)
* [It's a kind of magic: under the covers of Spring Boot](https://youtu.be/uof5h-j0IeE)
* [Presentations on InfoQ](https://www.infoq.com/spring-boot/)
* [Spring Boot for the web tier](https://youtu.be/7cemYpV1fNI)
{% endcapture %}
{% include project_page.html %}
</html>