SpringMVC學習筆記——文件上傳

1. 使用 @ExceptionHandler 註解 使用前需在springmvc.xml中添加<mvc:annotation-driven></mvc:annotation-driven> /* * 1. 在 @ExceptionHandler方法的入參中可以加入 Exception 類型的參數, * 該參數即對應發生的異常對象 * 2. @ExceptionHandler 方法
相關文章
相關標籤/搜索