使用IDEA快速开发Springboot入门demo

1、下载IDEA开发工具 地址:https://www.jetbrains.com/idea/
2、使用IDEA快速创建Springboot项目
File-New-Project
使用IDEA快速开发Springboot入门demo
Spring Initializr
使用IDEA快速开发Springboot入门demo
项目名称
使用IDEA快速开发Springboot入门demo
选择创建的项目所需的pom,要是创建web项目必选web,其他的根据自己的需求来,也可以创建完成之后在pom.xml添加
使用IDEA快速开发Springboot入门demo
3、自定义一个Controller
使用注解
@RestController
@RequestMapping(“/”)
浏览器访问即可
使用IDEA快速开发Springboot入门demo