更新时间:2023-09-29 22:19:10
似乎您的类路径中没有任何嵌入式Web服务器.
尝试通过spring-boot-starter-web
依赖项添加 Tomcat .
It seems you don't have any embedded web servers in your classpath.
Try adding Tomcat through the spring-boot-starter-web
dependency.
Maven pom.xml
:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
成绩 build.gradle
:
implementation 'org.springframework.boot:spring-boot-starter-web'