Maven WebApp 报错: Can not find the tag library descriptor

在Eclipse内创建maven项目时,项目中的jsp文件可能会有如下错误



 

这种情况是由于没有加入jstl和taglib的dependency,只要在pom文件中加入响应的依赖就可以了

如下

	<dependency>
		<groupId>javax.servlet.jsp.jstl</groupId>
		<artifactId>javax.servlet.jsp.jstl-api</artifactId>
		<version>1.2.1</version>
	</dependency>
	<dependency>
		<groupId>taglibs</groupId>
		<artifactId>standard</artifactId>
		<version>1.1.2</version>
	</dependency>

猜你喜欢

转载自lichen-1989.iteye.com/blog/2206328