idea创建springboot项目

第一步:新建项目:


第二步:选择springboot



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


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


第五步:创建一个controller


扫描二维码关注公众号,回复: 1691092 查看本文章

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


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

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


猜你喜欢

转载自blog.csdn.net/qq_38477936/article/details/80309059