gateway网关启动报错依赖错误Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

之前正常的网关忽然启动不了,打开idea右侧maven依赖项分析,有一个包引用了javax.servlet.

在这个包里面排除掉即可.

<exclusions>
    <exclusion>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
    </exclusions>
</exclusion>

  

posted @ 2022-03-21 10:25  阿拉蕾家的小铁匠  阅读(993)  评论(0编辑  收藏  举报