在修改gradle dependcy 时阴差阳错多删了
implementation 'io.github.lognet:grpc-spring-boot-starter:4.5.6'
implementation 'org.springframework.boot:spring-boot-starter-web't
解决方案:
通过google stackoverflow 找到点子:
You need to add the tomcat dependency in your pom
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency>