The invention relates to an abnormity
processing method and device based on Spring MVC, a
computer device and a storage medium. The method relates to the technical field of
Web application development, and comprises the following steps: obtaining a resource request sent by a
client through a front-end controller; determining a corresponding target processor object according to the
resource identifier in the resource request, and
processing the resource request through the target processor object to obtain a model view object; calling a
callback function of the interceptor interface class to verify the model view object; when the
callback function returns the abnormal type code, calling an abnormal
processing object to process the abnormal type code to obtain a new model view object; generating an abnormal
page view object according to the new model view object through a front-end controller; wherein the abnormal
page view object is used for enabling the
client to display a page comprising abnormal information corresponding to the abnormal type code. By adopting the method, various abnormal information occurring when the webpage
server processes the resource request of a user can beprocessed in a unified manner.