2021
07-04
07-04
centos环境下使用tomcat 部署SpringBoot的war包
准备war包一、准备好已有的SpringBoot工程,在pom中添加依赖1)设置打包格式为war<packaging>war</packaging>2)排除SpringBoot内嵌的tomcat<!--以war包部署的形式需要排除内嵌的tomcat--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><scope>provided</scope></dependency><dependency><groupId>javax.servlet</groupId><artifactId>ja...
继续阅读 >