第一步:从GitHub中下载SpringBoot 项目
Download and unzip the source repository for this guide, or clone it using Git: git clone https://github.com/spring-guides/gs-spring-boot.git
第二步:将项目导入到Eclipse或idea 中。
根据官网给出的步骤搭建SpringBoot,当导入项目后会报如下错误:
解决方案:增加 <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> 到pomw文件,然后重新更新Jar,如下:
启动项目:spring-boot:run