官网: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.
创建一个Spring Boot 项目
创建项目 选择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/
网友评论