Computer and Modernization

Previous Articles     Next Articles

Java Web Application Based on Spring MVC Framework

  

  1. (Computer College, Xianyang Normal University, Xianyang 712000, China)
  • Received:2018-02-27 Online:2018-09-11 Published:2018-09-11

Abstract: The Web framework based on MVC mode can separate the view, model, and controller of the application, and can simplify the implementation of the control layer. This paper proposes the development method of Java Web application based on Spring MVC framework. First, it analyzes the core components of the Spring MVC framework and the interaction process between them. Second, the basic application of the Spring MVC framework is expounded from two aspects of the configuration file and the implementation of Controller component. Finally, the solution of Spring MVC is given for the three core problems of Web application which are exception handling, interceptor and data validation, Taking the target assessment management system as an example, a part of the implementation code is given. The experiment shows that the Spring MVC framework can improve the stability, scalability and maintainability of Java Web applications.

Key words: Spring MVC framework, controller, exception handle, interceptor, data validation

CLC Number: