本文已被:浏览 1381次 下载 2327次
Received:December 17, 2015 Revised:February 25, 2016
Received:December 17, 2015 Revised:February 25, 2016
中文摘要: 异常处理机制是所有WEB应用设计中的关键组成部分,Spring MVC框架提供了异常处理接口和多种解析器. 通过源码分析法深入探讨了各种解析器的工作原理,总结得出它们的时间复杂度并进行了应用方式对照. 结合我校在校务管理系统基础框架上异常处理的应用需求情况,将异常划分为业务异常和系统异常两大类,设计并实施一个包含AJAX异常处理和ExceptionHandler统一异常处理的异常机制.
中文关键词: Spring MVC 异常处理 异常解析器 AJAX ExceptionHandler
Abstract:The exception handling mechanism is one of the key parts in any web application design. Spring MVC framework provides an exception handling interface and several exception resolvers. Through analyzing of the Spring Framework's source code, it describes the way which these exception resolvers work in, deduces their time complexity and lists their applicable scenarios. According to the application requirement of exception handling in framework of eCampus System in SYSU, it divides exception into two categories: business exception and system exception and designs and implements an exception handling including exception handling applying for AJAX and global exception handling of ExceptionHandler.
文章编号: 中图分类号: 文献标志码:
基金项目:
Author Name | Affiliation |
LI Hui-Huan | The Network and Information Technology Center, Sun Yat-sen University, Guangzhou 510275, China |
Author Name | Affiliation |
LI Hui-Huan | The Network and Information Technology Center, Sun Yat-sen University, Guangzhou 510275, China |
引用文本:
李惠欢.请求驱动的校务管理系统异常处理机制.计算机系统应用,2016,25(8):73-78
LI Hui-Huan.Exception Handling Mechanism in School Management System Based on Request.COMPUTER SYSTEMS APPLICATIONS,2016,25(8):73-78
李惠欢.请求驱动的校务管理系统异常处理机制.计算机系统应用,2016,25(8):73-78
LI Hui-Huan.Exception Handling Mechanism in School Management System Based on Request.COMPUTER SYSTEMS APPLICATIONS,2016,25(8):73-78