springcloud gateway 启动报WebMvcConfigurerAdapter.class cannot be opened because it does not exist

问题描述:

springcloud gateway 启动报WebMvcConfigurerAdapter.class cannot be opened because it does not exist

springcloud gateway 启动报WebMvcConfigurerAdapter.class cannot be opened because it does not exist_第1张图片

解决办法:

把源码复制一份到项目路劲下,包名保持一致

springcloud gateway 启动报WebMvcConfigurerAdapter.class cannot be opened because it does not exist_第2张图片

 

原因是springcloud升级了,不再使用springwebmvc而是webflux,启动要去除spring-boot-starter-web及spring-webmvc

 

你可能感兴趣的:(springcloud gateway 启动报WebMvcConfigurerAdapter.class cannot be opened because it does not exist)