運行Springboot時出現了錯誤...
發現自己忘了導入web啟動器
在pom.xml導入此依賴包
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.3.5.RELEASE</version>
</dependency>
然后再重新run,就沒問題了