SpringBoot快速入门,使用Intellij Idea新建SpringBoot项目

1.需求
在这里插入图片描述
2.项目构建
1)
在这里插入图片描述
2)
在这里插入图片描述
3)
在这里插入图片描述
4)Finish。
5)在这里pom.xml文件和启动类,已通过导入,构建好了,现在需要的就是写一个Controller;
在这里插入图片描述
6)在SpringApplication类中,点击绿色三角箭头,启动项目;
7)打开浏览器,输入http://localhost:8080/hello
在这里插入图片描述

Guess you like

Origin blog.csdn.net/qq_42393720/article/details/121011806