eclipse下开发springboot项目的插件安装:
help>Eclipse Marketplace 在find搜索框中输入sts
找到spring tool suite(STS) for Eclipse 3.8.4 点击install安装。
安装成功后,在工作区右键new–other–Spring starter Project:
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BootApplication {
public static void main(String[] args) {
SpringApplication.run(BootApplication.class, args);
}
}
启动运行吧!