使用MultiActionController的正確方法是什麼? 我在餐廳類有:Spring MVC中的顯示圖像
private byte[] logo;
在我的數據庫我得到了表BLOB圖像。通過使用休眠,它可以妥善保存到我的數據庫:
<tr>
<td>Logo :</td>
<td>< input type="file" name="logo" /></td>
</tr>
但我不知道如何在另一個網站上顯示此圖像。也許:
< img src="<%=("restaurant.logo")%>" alt="Upload Image" />
?
「Spring MVC + Hibernate + Maven」完整示例:https://sites.google.com/site/adrienitnotes/java/web-apps---spring-mvc-hibernate/spring-form-image-上傳-顯示從數據庫-冬眠-簡單映射 – 2012-10-07 11:55:33