| At present,with the popularity of Internet and the increasingly extendibility of the complexity and scale in Web application, high flexibility,reliability and personality are needed,which brings a new challenge to the Web application.In existing Web development,MVC design pattern offers the helpful train of thought in system interface,control flow and business logic of going on effective segregation and encapsulation. Thus there emerge many Web application framework based on MVC pattern at J2EE platform.But at the same time,the core criterion of J2EE-EJB has serious defect itself.It is too cumber for general Web application,and the price of ideal EJB container are very expensive,it binds a lot of the functions which enterprises do not need, thereby reduces the system cost-effective.So,in this thesis a lightweight Web development framework-Spring has been introduced and has been recommend its two key particular mechanism-IoC and AOP by analyzing its principle and realization,and in combination with MVC design pattern thought,this thesis divides it to four layers: view layer,controller layer,business logic layer,data persistence layer, and researches and improves the implement strategy of every layer.For example, adds Ajax technology into view layer,business logic layer puts forward the "open - closed" principle,data persistence layer uses the powerful JDBC. At last this thesis provides overall structural design of the lightweight Web application frame based on Spring and integrated with Acegi frame and reusable management component of dynamic .By using the lightweight Web application frame based on Spring hereinbefore, in combination with the practice project development of logistics information service platform, this thesis elaborates the system design and implemention course based on this frame in detail. In view of the key problem of level coupling degree and crosscutting concerns, this thesis puts forward to use the inversion of control pattern to reduce the coupling degree between the layers of multi-storey Web application system, thereby avoids strong intrusiveness of EJB to business logic layer, adopts the method of aspect oriented programming method to handle crosscutting concerns scattered between modules of the application system, thereby separates the core business code and the assistant function code,and introduces the reusable management component of dynamic to simplify the complexity of operating database,makes database maintenance more convenient and improves development efficiency.The whole system has a clearly arrangement and the nice expansibility,transplant capability,maintenance capability. |