in the same projectArchitecture diagram of 8.asp.net MVC and WebForm TechnologySummarize:After reading this article, I believe that the choice of ASP. NET WebForm and ASP. I believe that we should be able to do well, I always feel that many times is not a good technical problem, but suitable for not suitable for the problem or whether it can be used well.For example: If the Maxima plow, I am afraid that ma
, including data and business.
View: is responsible for the demonstration of the model, is generally what we see the user interface, customers want to see things.
Controller (Controller): Receive user requests, delegate to the model for processing (state change), after processing the returned model data returned to the view, the view is responsible for display. That is to say, the controller does a dispatcher's job.
As we can see from the diagram, in
, such as integrating the aspectj framework and the proxyfactory proxy factory mode. In the proxy factory implementation, both the JVM dynamic proxy implementation and, you can also implement cglib using a third-party proxy class library.
Overall architecture of 3spring
Divided into several layers:IOC container, AOP core module, encapsulated Java EE service, intermediate driver component, and other upper-layer applications.Spring
components and execution process Spring MVC is a full-featured MVC module for building Web applications provided by the spring framework, and a lightweight web framework that implements the request-driven type of the Web MVC design pattern based on Java, well implemented
Simple setup of spring-mvc Framework and spring-mvc
1. Download spring package, http://www.springsource.org/download
I got a spring-framework-4.0.6.RELEASE.
2. Create a web project and import the. jar package in/WebRoot/lib (/
Spring MVC is a follow-on product of springframework and has been integrated into spring Web flow. The Spring framework provides a full-featured MVC module for building WEB applications. Using the spring pluggable
development, Sitemesh integration, integrated Hibernate/ibatis STRUTS2 Presentation layer Framework Getting Started configuration, core components, tag libraries, internationalization, data validation, Sitemesh integrated converters, interceptors, integrated hibernate/ibatis Spring Business Layer Framework Primer configuration, IoC container, MVC, tag library, internationalization, data validation, databas
Programmers adore the great God of technology, and a large part of it is because of their ability to find and solve problems, especially when there are urgent problems on the line, they are always able to locate and solve them quickly.On the one hand, they have a deep technical basis, the application of technology know its why, on the other hand, in the process of mining the pit is constantly summed up, accumulated a lot of experience.I believe everyone has used
Spring MVC learning Summary (1) -- mvc overview and environment configuration are reproduced from the [Zhang Guo] blog, springmvcSpring MVC learning Summary (1) -- mvc overview and environment Configuration
Directory
I. MVC Over
1. IntroductionMVC is an architectural design pattern and a design concept. is to achieve the purpose of layered design, so that the code decoupling, ease of maintenance and code reuse. MVC is the abbreviation for 3 words, full name: Model-view-controller (Model-View-controller).Model:Model plays the role of the Master of function in MVC, which deals with the business logic and the data model, such as User
annotations. You can process the corresponding request by specifying the value and method in @ RequestMapping. In addition, the spring mvc framework has done a lot of work.Ii. Spring MVC ProcessAccording to the introduction in the official document and their own understanding, the elephant drew a
variables are sharedThis does not affect the program's operation, but it gives us trouble coding to read the program.====================================Spring MVC Benefits:Spring MVC through the policy interface, the spring framework is highly configurable and includes a variety of view technologies, such as JavaServ
Spring is a "engine"Spring MVC is an MVC framework based on springSpring Boot is a set of rapid development integration packages based on SPRING4 conditional registrationSpring initially decouples application components with "Factory mode" (DI) and "proxy mode" (AOP)The Spring
Document directory
Code snippets in this article
Create spring-managed JAX-RS resources in Jersey
Create spring MVC @ controller class
Scope of web layer components
Request Parameters, cookies, and HTTP headers
Process data in the Request body
Set response body data with JAX-RS
Use spring
A typical Java web should look like this from the architecture:1. The Web browser sends an HTTP request to the server, which is acquired by the Controller (servlet) and processed.2. The Controller (Servlet) invokes the core business logic model section.3. Model carries out database access operations and returns the result of the operation to model.4. The controller gives the result of the business logic processing to the view (JSP) and dynamically out
Spring MVC principle and Spring MVC PrincipleSpring MVC WorkflowFigure 1Figure 2Spring workflow description1. the user sends a request to the server. The request is captured by the Spring front-end control Servelt DispatcherServle
Open source Framework, an MVC web framework based on the Pojo action. Based on the webwork and xwork frameworks of the year, it inherits its merits and makes considerable improvements. Struts2 now in the Java Web Development community can be said to be rounds, from the developer's point of view, Struts2 can be so deep in the development of the people's heart, and its excellent design is inseparable.
1,
Struts2 based on the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.