【原因】
自帶容器中的jar包與maven引入的tomcat依賴中的jar包有沖突
【解決方案】
屏蔽pom.xml中以下節點:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency>
【參考資料】
https://blog.csdn.net/nv_ting/article/details/77991508
END
