2020
10-10
10-10
SpringBoot去除内嵌tomcat的实现
SpringBoot内嵌tomcat,直接runApplication即可,那么我们如何去除内嵌的tomcat,使用自己的呢?一、POM(去除内嵌tomcat后,需要添加servlet依赖)<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><!--去除内嵌tomcat--><exclusions><exclusion><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</ar...
继续阅读 >