SpringBoot —— 搭建SpringBoot+Maven
作者:
猫的树 | 来源:发表于
2021-09-14 16:00 被阅读0次
前言
SpringBoot系列Demo代码,使用idea搭建SpringBoot简单项目
一、创建步骤
1.创建SpringBoot项目,选择JDK版本
点击New新建项目

在这里插入图片描述
选择JDK版本

在这里插入图片描述
2.填写包名和项目名
一般包名规范为域名倒写 com.公司名.项目名.模块名*..
项目名全小写

在这里插入图片描述
3.创建web项目
选择web,勾选Spring Web

在这里插入图片描述
4.创建web项目
填写项目存储路径

在这里插入图片描述
二、测试
1.配置maven

在这里插入图片描述
2.创建测试方法

在这里插入图片描述
启动Application启动类,访问本地连接http://localhost:8080/hello/world

在这里插入图片描述
» 下一章:SpringBoot —— 整合MyBatis-Plus
本文标题:SpringBoot —— 搭建SpringBoot+Maven
本文链接:https://www.haomeiwen.com/subject/mqbcgltx.html
网友评论