spring-boot README

The project's README from github.com/spring-projects/spring-boot. As one markdown file: README.md.

= Spring Boot image:https://github.com/spring-projects/spring-boot/actions/workflows/build-and-deploy-snapshot.yml/badge.svg?branch=main["Build Status", link="https://github.com/spring-projects/spring-boot/actions/workflows/build-and-deploy-snapshot.yml?query=branch%3Amain"] image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Develocity", link="https://ge.spring.io/scans?&search.rootProjectNames=Spring%20Boot%20Build&search.rootProjectNames=spring-boot-build"]

:docs: https://docs.spring.io/spring-boot :github: https://github.com/spring-projects/spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits they need.

You can use Spring Boot to create stand-alone Java applications that can be started using java -jar or more traditional WAR deployments. We also provide a command-line tool that runs Spring scripts.

Our primary goals are:

== Installation and Getting Started

The {docs}[reference documentation] includes detailed {docs}/installing.html[installation instructions] as well as a comprehensive {docs}/tutorial/first-application/index.html[getting started] guide.

Here is a quick teaser of a complete Spring Boot application in Java:

[source,java]

import org.springframework.boot.; import org.springframework.boot.autoconfigure.; import org.springframework.web.bind.annotation.*;

@RestController @SpringBootApplication public class Example {

@RequestMapping("/")
String home() {
	return "Hello World!";
}

public static void main(String[] args) {
	SpringApplication.run(Example.class, args);
}

}

== Getting Help

Are you having trouble with Spring Boot? We want to help!

== Contributing

We welcome contributions of all kinds! Please read our link:CONTRIBUTING.adoc[contribution guidelines] before submitting a pull request.

== Reporting Issues

Spring Boot uses GitHub's integrated issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:

== Building from Source

You don't need to build from source to use Spring Boot. If you want to try out the latest and greatest, Spring Boot can be built and published to your local Maven cache using the https://docs.gradle.org/current/userguide/gradle_wrapper.html[Gradle wrapper]. You also need JDK 25.

[source,shell]

$ ./gradlew publishToMavenLocal

This command builds all modules and publishes them to your local Maven cache. It won't run any of the tests. If you want to build everything, use the build task:

[source,shell]

$ ./gradlew build

== Guides

The https://spring.io/[spring.io] site contains several guides that show how to use Spring Boot step-by-step:

== License

Spring Boot is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].

spring-boot (spring-projects/spring-boot)

Searching Database…

这是什么?Spring Boot 是一个 Java 框架,可以帮助你用极少的配置工作,创建基于 Spring 的生产级应用和服务。
这是要添加到 Java 项目中的框架,还是需要单独运行的应用?它是一个 Java 框架或库,你可以通过 Maven 或 Gradle 将它添加到构建中;你自己的代码运行在它之上,并可编译成可直接运行的独立 jar 包,或传统的 WAR 包。
如何将 Spring Boot 添加到项目中?按照参考文档中的安装说明操作,使用 Maven 或 Gradle 添加 Spring Boot starter 依赖,然后用 'java -jar' 运行应用,或将其部署为 WAR 包;'第一个应用' 教程会带你从零开始完成整个过程。
Spring Boot 会生成代码,或者需要 XML 配置吗?都不需要。它明确避免代码生成,也不需要任何 XML 配置,而是依赖一套合理的默认设定,你可以根据需要覆盖这些默认值。
Spring Boot 开箱即用能提供哪些功能?它内置了常见的生产级功能,如内嵌服务器、安全、指标、健康检查和外部化配置,因此你不必自己逐一接入。
我能把 Spring Boot 应用作为独立 jar 运行吗?可以。借助内嵌服务器支持,你可以将应用打包,并直接用 'java -jar yourapp.jar' 运行,无需外部 servlet 容器。
Spring Boot 有命令行工具吗?有。Spring Boot 自带一个 CLI 工具,可以直接运行 Spring 脚本。
为什么要用 Spring Boot,而不是原生 Spring?它通过预设的默认配置,大幅加快上手速度;同时随着需求增长,你仍可以调整这些默认设置。
Size
220.2 MB
Stars
81.7K
Age
13y
Commits · 90 Days