18.03.29~18.03.30

java.lang.ClassCastException:
cell1.getType() != CellType.EMPTY

相对路径加入出错

报出String 类型出错,实际上为jdk引入版本不符
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

这个语句是用来拼装当前网页的相对路径的。

<base href="...">是用来表明当前页面的相对路径所使用的根路径的。

猜你喜欢

转载自blog.csdn.net/yw2567/article/details/79802707