springboot python整合_SpringBoot整合tomcat

由于现在的项目打包为war文件之后需要通过tomcat执行,所以注销掉jetty的相关配置。

现在项目中缺少web.xml配置文件,在插件配置中增加如下配置:

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

SpringBoot

com.gwolf

1.0-SNAPSHOT

4.0.0

war

springboot-tomcat

springboot-tomcat

http://maven.apache.org

UTF-8

org.springframework.boot

spring-boot-starter-web

org.springframework.boot

spring-boot-starter-test

test

org.springframework

springloaded

org.springframework.boot

spring-boot-devtools

org.springframework.boot

spring-boot-starter-thymeleaf

junit

junit

test

springboot-tomcat

org.apache.maven.plugins

maven-war-plugin

src/main/resources/web.xml

经验分享 程序员 微信小程序 职场和发展