spring boot(一) idea创建spring boot

  1. new >> project
    spring boot(一) idea创建spring boot

  2. spring initializr >> next >> next >> 选web >> next >> finish
    spring boot(一) idea创建spring boot
    spring boot(一) idea创建spring boot
    spring boot(一) idea创建spring boot
    spring boot(一) idea创建spring boot

3.在包下新建controller包,包下建controller类
spring boot(一) idea创建spring boot

4.启动项目,当控制台出现Tomcat started on port(s): 8080 (http) with context path ''
就启动成功
spring boot(一) idea创建spring boot

5.打开浏览器输入路径
spring boot(一) idea创建spring boot

相关文章: