First, the new project springboot
Click the project file --New--
Select Spring Initializr
The next step
According to the above or directly next
The next step
Click Finish
Second, start the project
The establishment of a class
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class Test { @RequestMapping("/hello") public String helloSpringBoot() { return "Hello SpringBoot Project."; } }
Click the green arrow to run
Open the page and enter http: // localhost: 8080 / hello