方法一
安装STS插件


安装插件导向窗口完成后,在eclipse右下角将会出现安装插件的进度,等插件安装完成后重启eclipse生效
新建spring boot项目


项目启动

方法二




org.springframework.boot
spring-boot-starter-parent
2.0.2.RELEASE

org.springframework.boot
spring-boot-starter-web

org.springframework.boot
spring-boot-maven-plugin



package com.springboot.springbootDemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class App
{
public static void main( String[] args )
{
SpringApplication.run(App.class, args);
}
}

package com.springboot.springbootDemo.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(“hello2”)
public class HelloController {
@RequestMapping(“”)
public String hello() {
return “helloworld2”;
}
}



方法三

点击Generate Project下载项目压缩包
解压后,使用eclipse,Import -> Existing Maven Projects -> Next ->选择解压后的文件夹-> Finsh,OK done!