Process finished with exit code 0
这种主要是配了默认的 Tomcat ,然后又配置了外部的 Tomcat。解决办法,注释掉默认的:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency>