介绍:这里虽然使用idea配置,但是eclipse也可以自行配置,内容相差无几,这里先整合spring MVC
特点:
①自动配置spring
②嵌入的Tomcat,无需部署WAR文件
③简化maven配置
④。。。
一、创建项目
二、编辑项目信息
三、选择依赖(我这什么都不选,自行添加)
四、引入mvc依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--web依赖-->
<dependency>
<groupId>