基于本地的maven,使用idea工具创建一个简单的Springboot项目。
点击 Create New Project ,创建一个新项目。
选择spring initialier ,选择Next 下一步,
Type 选择maven project,选择Next,
点击web,选择spring web,再点击Next,
然后点击idea的file --settings ,如图配置自己本地的maven
点击ok,配置本地maven结束。创建HelloController
启动项目,在浏览器输入http://localhost:8080/hello
控制台输出:
hello world