idea创建springboot项目

第一步:新建项目:

idea创建springboot项目

第二步:选择springboot


idea创建springboot项目

第三步:更改组名,项目名

idea创建springboot项目

第四步:添加依赖(其他的可以创建完项目之后添加)

idea创建springboot项目

第五步:创建一个controller

idea创建springboot项目

第六步:将pom.xml中tomcat注释scope

idea创建springboot项目

第七步:启动SpringbootTestApplication,并在浏览器中访问http://localhost:8080/user/login成功

第八步:可以在file---settings中修改maven(选用):

idea创建springboot项目