1.

idea 搭建springboot 项目

2.

idea 搭建springboot 项目

选中 springInitializr  和图片一样就ok,然后next。

3.

idea 搭建springboot 项目

填写完之后直接next

4.选中依赖

idea 搭建springboot 项目

本次只选择springboot的核心依赖,所以如图所示勾选web中的web,然后next

5.

idea 搭建springboot 项目

然后选择finish

idea 搭建springboot 项目

选择ok,创建文件夹。

idea 搭建springboot 项目

随便选一个即可

idea 搭建springboot 项目

这是创建之后的目录结构,基本可以开发,如果需要使用mybatis,mysql的依赖包,在pom.xml中添加依赖,引入jar包即可。

相关文章: