SpringBoot2.1.5 (34) --- SpringBoot Example

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/zhangbijun1230/article/details/91358208

 

Projects SpringBoot official address

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

 

SpringBoot

Created using the Spring, production-level applications and services become very easy and simple. It needs to have a unique perspective on the Spring platform, so new and existing users can quickly get the information they need.

SpringBoot can be used to create stand-alone Java applications, these applications can use Java-jar or a more traditional deployment to start the war. We also offer a command-line tool to run Spring script.

Our main objectives are:

It provides a faster, wider entry experience for all of Spring development

Do not be rigid, but when demand begins to deviate from the default, to leave quickly.

Provide a common set of non-functional properties of large-scale projects (such as the embedded server, security, measurement, health checks, externalizing configuration)

Absolutely no code generation and does not require XML configuration

Installation and Wizard

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);
	}

}

SpringBoot Help

Check the reference document, in particular, how - they provide solutions to the most common problems.

Learn the basics of Spring -Spring boot built on many other Spring projects, see Spring.io Web site for a large number of reference documents. If you're new to SpringBoot, try one of the wizard.

If you are upgrading, please read the release notes for upgrade instructions and "New & Noteworthy" feature.

Ask a question - we monitor stackoverflow.com, to get the problem with Spring boot marks. You can also chat with the community on Gitter.

Use Spring boot report an error on github.com/spring-projects/spring-boot/issues.

 

Guess you like

Origin blog.csdn.net/zhangbijun1230/article/details/91358208