原因為:SpringBoot內置Tomcat沒有正常啟動,在pom.xml 中添加:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
重新運行項目便可啟動嵌入的tomcat服務器
