检查下有没有输出如下部分,没有的话就是没有启动内置的tomcat,可以注释掉scope解决
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>--> <---------注释掉这行
</dependency>
检查下有没有输出如下部分,没有的话就是没有启动内置的tomcat,可以注释掉scope解决
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<!--<scope>provided</scope>--> <---------注释掉这行
</dependency>