环境
jdk 1.8
maven
idea
直接创建maven项目,从start.spring.io生产项目
(1)选择spring Initializr,jdk选择1.8以上
springboot系列(1)--springboot之helloword
(2)填写项目信息,默认不更改
springboot系列(1)--springboot之helloword
(3)选择使用技术
先开发web项目,选择web+spring boot 2.1.2
springboot系列(1)--springboot之helloword
(4)填写项目名称
springboot系列(1)--springboot之helloword
完成
等待加载资源完成
(5)新建控制器
@SpringBootApplication是Spring Boot 项目的核心注解,主要目的是开启自动配置

springboot系列(1)--springboot之helloword
运行项目
浏览器打开地址
localhost:8080/hello
浏览器输出内容,spring boot 入门完成

相关文章: