Missing artifact javax.servlet.jsp.jstl:jstl:jar:1.2

<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl -->
        <dependency>
            <groupId>javax.servlet.jsp.jstl</groupId>
            <artifactId>jstl</artifactId>
            <version>1.2</version>
        </dependency>

导入上面的包出现

Missing artifact javax.servlet.jsp.jstl:jstl:jar:1.2 错误

这是因为少了依赖包

添加下面的两个依赖包

        <dependency>
            <groupId>javax.servlet.jsp.jstl</groupId>
            <artifactId>jstl-api</artifactId>
            <version>1.2</version>
        </dependency> 

<!-- jstl-impl -->
        <dependency>
            <groupId>org.glassfish.web</groupId>
            <artifactId>jstl-impl</artifactId>
            <version>1.2</version>
        </dependency>

猜你喜欢

转载自blog.csdn.net/qq_31308933/article/details/82017529