1、新建project
选择Spring Initializr
type选择maven
点击next
选择Spring Boot BeverlyTools,Lombok
在web中选择Spring web
点击create
新建package类型的包controller
在controller中新建类HelloWorld
在类中编写代码如下
在启动类StringbootHelloWorldApplication中运行Main
打开http://localhost:8080/hello
显示如下界面