1.修改 pom.xml 的jar 改完 war
2.添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
3. 利用eclipse 点击 项目 右键 Configure -> Convert to Web