idea构建Springboot
点击“file"->"new"->project,选择”Spring Initializr"
image-20190701101514483.png
点击“next",修改”group“和”Artifact“:
image-20190701101944082.png点击”next“,勾选”web"
image-20190701102202004.png点“next”,完成。
删除以下文件:
![image-20190701103742586.png](https://img.haomeiwen.com/i11208413/f27dd031814f24d1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)修改“application.properties"为”application.yml"
右击“pom.xml"->"add as Maven Project”
image-20190701103742586.png新建Controller:
image-20190701104337988.png启动项目,浏览器输入:
image-20190701133813780.png
网友评论