admin管理员组文章数量:1794759
Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway错误
错误案例
产生的原因
原因是因为Spring cloud Gateway 是建立在spring boot 2.x 和 spring webflux基础上的既:gateway 本身已经包含了spring MVC 的功能,正与提示的一样和spring boot 的web starter冲突了
解决方式找到gateway下面的spring-boot-starter-web依赖,然后将其注释掉
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
本文标签: 错误classpathMVCspringGateway
版权声明:本文标题:Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway错误 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686620808a87227.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论