目前最新版本是 2.1.4,个人建议是先通读一遍,了解下章节和概要,这样有利于一个全局的把握。web
2. 快速开始搭建一个项目spring
右键新建立,spring-boot
建立完成后的项目结构以下:3d
由于是要进行web 端的开发,引入须要的包code
<!-- web的模块 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
编写咱们的第一个程序 hello:blog
启动咱们MyFirstSpringBootApplication中的 main 方法:开发
启动完成后,在地址栏中输入: http://localhost:8080/hello ,就出现下面的结果,是否是很是的方便。get
注: 这里面涉及到的一些基础知识我就不进行相关的介绍了,直接告知怎么进行代码搭建。(好比: @RestController ,@SpringBootApplication 这个注解等自行了解)io