1、File------>New------>Project
2、spring Initializr------>选择JDK版本------->Next
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190614151051180.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2xpMTMyNTE2OTAyMQ==,size_16,color_FFFFFF,t_70)
3、填写包名称----->项目名称--------->Next
4、选择web项目------>Next
5、更改项目保存路径
6、第5步完成即可创建项目成功,删除如下图不必要的文件。
7、编写相关的Controller、Service
package com.rf.springboot.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloWorld {
@RequestMapping("/hello")
public String hello(){
return "hello world !";
}
}