如下:
原因:
通过排查发现是没有缺少依赖springframework的spring-boot-starter-web依赖引起的,现在需要加上依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
重新启动即可。