1.使用idea工具创建一个maven工程,该工程为普通的java工程即可
2. 添加SpringBoot的起步依赖
SpringBoot要求,项目要继承SpringBoot的起步依赖spring-boot-starter-parent
SpringBoot要集成SpringMVC进行Controller的开发,所以项目要导入web的启动依赖
3.写SpringBoot引导类
4. 编写Controller
5.执行SpringBoot起步类的主方法
rockeybalboa 博主文章分类:Spring Boot ©著作权
SpringBoot要求,项目要继承SpringBoot的起步依赖spring-boot-starter-parent
SpringBoot要集成SpringMVC进行Controller的开发,所以项目要导入web的启动依赖
【SpringBoot】快速入门
2.快速入门接下来,我们就来利用SpringBoot搭建一个web工程,体会一下SpringBoot的魅力所在!2.1.创建工程我们先新建一个空的工程:工程名为demo:新建一个model:使用maven来构建:然后填写项目坐标:目录结构:
2-SpringBoot快速入门SpringBoot快速入门需求:搭建SpringBoot工程,定义HelloController.hello()方法,返回”Hello SpringBoo...
快速入门Springboot使用MongoDB第一步:新建Maven工程(比较简单,此步略过)第二步:新建M
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M