admin管理员组文章数量:1794759
解决gateway启动报错: Spring MVC found on classpath
Spring MVC found on classpath, which is incompatible with Spring Cloud gateway at this time. Please remove spring-boot-starter-web dependency.
原因 getaway的pom文件中引用了公用包,公用包包含了spring-boot-starter-web依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> 解决方案:只要getawany启动,不包含这个依赖就可以(排除,或者不依赖) <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </exclusion> </exclusions>
本文标签: 报错GatewayspringclasspathMVC
版权声明:本文标题:解决gateway启动报错: Spring MVC found on classpath 内容由林淑君副主任自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.xiehuijuan.com/baike/1686619176a87000.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论