1. 程式人生 > >專案釋出到Tomcat後,網頁圖片不顯示

專案釋出到Tomcat後,網頁圖片不顯示

在本地測試好好的,但是專案釋出到Tomcat後網頁的圖片不顯示了,可以引用絕對路徑

<a href="indexAction.hy?md=applyInfoPage&actId=${act.id }">
<img src="${pageContext.request.contextPath}/${ act.actPicPath }" height="80" width="160" onerror="this.onerror=null; this.src='${pageContext.request.contextPath}/resource/img/notfind.jpg'">

</a>