摘要
文章讨论了基于Servlet API构建的Spring MVC框架。该框架支持各种请求资源的映射策略,并具有非常灵活的数据验证、格式化以及数据绑定机制。Spring MVC框架支持默认类型数据绑定、简单数据类型绑定和POJO绑定等多种数据绑定形式,在异常处理中通过单独抽取进行统一处理,不仅便于程序维护,而且减少了代码的冗余。
This paper mainly discusses the Spring MVC framework based on Servlet API, which supports various mapping strategies for requesting resources, and has a very flexible data validation, formatting, and data binding mechanism. Spring MVC framework supports default type data binding, simple data type binding and POJO binding;In the exception handling, it is convenient to maintain the program and greatly reduces the code redundancy through separate extraction and unified processing.
作者
陈李飞
CHEN Lifei(Department of Suzhou Higher Vocational,Suzhou Jiangsu 215009,China)
出处
《信息与电脑》
2022年第19期247-250,共4页
Information & Computer
基金
苏州市职教学会部省共建都市圈项目研究课题“‘1+X’证书制度下软件技术专业课程教学实践研究”(项目编号:Szzjlx202124)
苏州市高职高专研究课题“课程思政视域下‘I+X’Web前端设计课程的教学实践研究”(项目编号:GZGZ“1+X”202117)。