SpringBoot
介绍
目的:简化SSM开发,很多事情框架自动做,让开发者更关注代码逻辑
spring缺点:
- 以来设计繁琐
- 配置繁琐
springboot优点: - 简化依赖配置
- 自带服务器
搭建步骤:
- 创建一个空的项目
![image]()


确定maven
pom文件添加
<!-- springboot版本 -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
</parent>
<dependencies>
<!-- web项目必须引入的依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- 单元测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>



浙公网安备 33010602011771号