创建spring boot的三种方式

一. 在线创建

1.在线的地址:https://start.spring.io/

然后填写你自己需要的版本最后 点击Generate the project 按钮下载 最后引用就可以了

二.使用IDE创建

我使用的工作工具是IDEA

接下来是要注意一下  你选择的路径地址当你修改project location时后面要自己手动添加 工程名字

然后点击完成 就可以了。

 三.通过maven来构建

 由于spring boot ,本质上是一个maven工程,因此可以先创建maven工程,再次改造成一个springboot工程

 然后我们要登陆去官网去找依赖

https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-first-application

          这个依赖也要添加进去

测试用到

好了

完成

猜你喜欢

转载自www.cnblogs.com/limingming1993/p/11131077.html