美文网首页
idea创建springboot项目

idea创建springboot项目

作者: 狂人程序 | 来源:发表于2019-02-23 23:21 被阅读0次

1、新建Spring Initializr,点next

2、填写Group和Artifact,点next

3、选择web,复选框勾上,点next

4、填写项目名称和保存路径,点finish

5、打开项目目录,删除以下文件夹和文件

6、idea第一次创建springboot需要下载依赖包,所需的时间会比较久,我下载去了35分钟,慢慢等吧o(╯□╰)o

7、DemoApplication类是自动生成的,是程序的入口

8、我们创建一个HelloSpringboot类,如下

9、运行项目

10、在浏览器中输入仪地址http://localhost:8080/hello,将输出打印信息

相关文章

网友评论

      本文标题:idea创建springboot项目

      本文链接:https://www.haomeiwen.com/subject/shvxgttx.html