一、新建springboot项目
点击 文件--New--项目

选择Spring Initializr

下一步

按照上面的或者直接下一步

下一步

点击完成
二、启动项目
建立一个类
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."; } }
点击绿色箭头运行

打开网页输入http://localhost:8080/hello

原文:https://www.cnblogs.com/rumian/p/12124817.html