IDEA创建SpringBoot项目

1、file-----》new------》project...-------->Spring Initializr:如下

 

 2、创建项目:如下图;

 

 3、选择Spring的版本,添加需要的依赖

 

 4、下一步后填写项目名和项目路径

 

 5、至此项目创建成功,并且pom的依赖添加完成

 

 6、创建个首页,用于测试index.html

 

 

7、在启动类中添加一个Controller

 

 8、启动项目:访问localhost:8080:跳转首页即可;

 

posted @ 2021-01-05 20:51  whynotbi  阅读(106)  评论(0编辑  收藏  举报