创建springboot项目

注意我们的代码要放在启动类所在包下面

idea

new project ---> Spring initlallzr ---> 选中 Default(一个地址,这个默认也是选中) ---> next --->
填写 Group、Artifact(公司域名和项目名) ---> next --->
Dependencies 搜索、勾选需要的依赖 --->
选择 SPringBoot 版本 ---> finish

sts、eclipse

原文地址:https://www.cnblogs.com/huanggy/p/9471790.html