diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java index c5fbe78..c3d4835 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java @@ -198,13 +198,7 @@ public class QuController extends BaseController { quManager.importExcel(list); // 导入成功 return success("导入成功"); - } catch (IOException e) { - logger.info(e.getMessage()); - } catch (InvalidFormatException e) { - logger.info(e.getMessage()); - } catch (IllegalAccessException e) { - logger.info(e.getMessage()); - } catch (InstantiationException e) { + } catch (IOException | InvalidFormatException | IllegalAccessException | InstantiationException e) { logger.info(e.getMessage()); } return error("导入失败");