解决 spring boot 的启动问题 Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String;

在pom.xml中改配置

  <dependency>
            <groupId>javax.servlet.jsp.jstl</groupId>
            <artifactId>jstl-api</artifactId>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

 

posted @ 2023-01-12 09:42  huanglei2010  阅读(318)  评论(0)    收藏  举报