在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:spring-projects/spring-boot开源软件地址:https://github.com/spring-projects/spring-boot开源编程语言:Java 97.2%开源软件介绍:Spring BootSpring 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 Our primary goals are:
Installation and Getting StartedThe reference documentation includes detailed installation instructions as well as a comprehensive Here is a quick teaser of a complete Spring Boot application in 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 HelpAre you having trouble with Spring Boot? We want to help!
Reporting IssuesSpring 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 SourceYou don’t need to build from source to use Spring Boot (binaries in repo.spring.io), but if you want to try out the latest and greatest, Spring Boot can be built and published to your local Maven cache using the Gradle wrapper. You also need JDK 17. $ ./gradlew publishToMavenLocal This will build all of the jars and documentation and publish them to your local Maven cache.
It won’t run any of the tests.
If you want to build everything, use the $ ./gradlew build ModulesThere are several modules in Spring Boot. Here is a quick overview: spring-bootThe main library providing features that support the other parts of Spring Boot. These include:
spring-boot-autoconfigureSpring Boot can configure large parts of typical applications based on the content of their classpath.
A single Auto-configuration attempts to deduce which beans a user might need. For example, if spring-boot-startersStarters are a set of convenient dependency descriptors that you can include in your application.
You get a one-stop shop for all the Spring and related technology you need without having to hunt through sample code and copy-paste loads of dependency descriptors.
For example, if you want to get started using Spring and JPA for database access, include the spring-boot-cliThe Spring command-line application compiles and runs Groovy source, allowing you to write the absolute minimum amount of code to get an application running. Spring CLI can also watch files, automatically recompiling and restarting when they change. spring-boot-actuatorActuator endpoints let you monitor and interact with your application.
Spring Boot Actuator provides the infrastructure required for actuator endpoints.
It contains annotation support for actuator endpoints.
This module provides many endpoints, including the spring-boot-actuator-autoconfigureThis provides auto-configuration for actuator endpoints based on the content of the classpath and a set of properties.
For instance, if Micrometer is on the classpath, it will auto-configure the spring-boot-testThis module contains core items and annotations that can be helpful when testing your application. spring-boot-test-autoconfigureLike other Spring Boot auto-configuration modules, spring-boot-test-autoconfigure provides auto-configuration for tests based on the classpath. It includes many annotations that can automatically configure a slice of your application that needs to be tested. spring-boot-loaderspring-boot-devtoolsThe spring-boot-devtools module provides additional development-time features, such as automatic restarts, for a smoother application development experience. Developer tools are automatically disabled when running a fully packaged application. SamplesGroovy samples for use with the command line application are available in spring-boot-cli/samples.
To run the CLI samples, type GuidesThe spring.io site contains several guides that show how to use Spring Boot step-by-step:
LicenseSpring Boot is Open Source software released under the Apache 2.0 license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论