其他分享
首页 > 其他分享> > Gateway模块中启动报:Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this

Gateway模块中启动报:Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this

作者:互联网

原因是引入了 spring-boot-starter-web依赖

在pom文件中将 spring-boot-starter-web 依赖移除即可

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
</dependency>

标签:web,spring,boot,Spring,Gateway,starter
来源: https://www.cnblogs.com/rzkwz/p/16583012.html