官網:https://projects.spring.io/spring-boot/
Spring Boot 2.0.0.M7 requires Java 8 and Spring Framework 5.0.2.RELEASE or above. Explicit build support is provided for Maven 3.2+ and Gradle 4.
檢查JDK和Gradle
Servlet Containers
The following embedded servlet containers are supported out of the box:
servlet containers required
You can also deploy Spring Boot applications to any Servlet 3.0+ compatible container.
創(chuàng)建一個Spring Boot 項目
創(chuàng)建項目
選擇JDK1.8+
選擇Gradle項目
選擇spring boot2.0
指定項目名稱和路徑
選擇本地gradle
等待gradle構建完成,首次比較慢
運行
啟動成功
也可以參看:https://www.jetbrains.com/help/idea/2017.1/creating-spring-boot-projects.html
或者: https://start.spring.io/