springboot遇到的前臺問題

在使用el表達式時爆出錯誤
java.lang.NumberFormatException:For input string :"id" 錯誤
首先在xml文件中設置maven

<dependency>
		<groupId>taglibs</groupId>
		<artifactId>standard</artifactId>
		<version>1.1.2</version>
	</dependency>
 
	<!-- JSTL --> 
	<dependency>
		<groupId>javax.servlet</groupId>
		<artifactId>jstl</artifactId>
		<version>1.1.2</version>
	</dependency>
	

然後在使用el表達式的jsp頁面中加入

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章