原因为:SpringBoot内置Tomcat没有正常启动,在pom.xml 中添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
重新运行项目便可启动嵌入的tomcat服务器
2023-08-01 21:35:46
原因为:SpringBoot内置Tomcat没有正常启动,在pom.xml 中添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
重新运行项目便可启动嵌入的tomcat服务器