SpringBoot学习文档
首先真的特别感谢同学的分享以及老师的整理,让我成功入门了springboot的。
一、介绍
小结:
- SpringBoot并不是一个新的开发语言
- Spring Boot 简化了基于Spring的应用开发
- SpringBoot简化了配置
- 能很容易整合很多第三方优秀框架
什么是SpringBoot/SpringBoot的特点
SpringBoot并不是一个新的开发语言,SpringBoot简化了Spring的应用开发,降低了Spring的学习和使用门槛,SpringBoot简化了Spring的配置,并且很容易整合第三方优秀的框架。
二、快速入门
2.1方式一
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>SpringbootDemo01</artifactId>
<version>1.0-SNAPSHOT</version>
<!--父工程-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
</parent>
<!--起步依赖web-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
</project>
DemoApplication
package com.qf.bigdata;
import org.springframework.boot.SpringApplication;
import org.springframework.