第一个springboot程序--hello world

前言

小白使用IDEA运行第一个springboot框架的程序,并在服务器上打出hello world


提示:以下是本篇文章正文内容,下面案例可供参考

一、步骤

1.新建项目

第一个springboot程序--hello world_第1张图片
第一个springboot程序--hello world_第2张图片
第一个springboot程序--hello world_第3张图片
第一个springboot程序--hello world_第4张图片
第一个springboot程序--hello world_第5张图片
随后等待jar包载入完成

第一个springboot程序--hello world_第6张图片
运行程序打开http://localhost:8080/出现表示成功
第一个springboot程序--hello world_第7张图片
然后写第一个hello world程序,在DemoApplication同层下建立层
第一个springboot程序--hello world_第8张图片
最后运行
进入网页http://localhost:8080/hello
出现hello world表示成功
第一个springboot程序--hello world_第9张图片

你可能感兴趣的:(springboot,spring)