Home >Java >javaTutorial >What framework does JavaWeb use?
What framework does JavaWeb use? The following article will introduce to you the three major frameworks of JavaWeb development. I hope it will be helpful to you.
Although Java's Web frameworks are different, they basically follow a specific approach: use Servlet or Filter to intercept requests, and use MVC ideas to design the architecture. Use convention, XML or Annotation to implement configuration, use the object-oriented characteristics of Java to implement the request and response process, and support Jsp, Freemarker, Velocity and other views.
Three major frameworks for JavaWeb development
1. Spring framework
Spring is a lightweight inversion of control (IoC) and aspect-oriented ( AOP) container framework was created to solve the complexity of software development.
Spring uses basic JavaBeans to complete things that could only be done by EJB before. However, Spring's uses are not limited to server-side development. From the perspective of simplicity, testability and loose coupling, most Java applications can benefit from Spring.
2. Struts2 framework
Strut is an MVC framework based on the Sun J2EE platform. It is an open source free MVC framework for developing modern Java Web applications. It mainly uses Servlet and JSP technology. to achieve.
Strut contains a set of classes and interfaces that work together to develop web applications. It is a web framework for many Java applications and has a lot of community support. In order to further extend the Struts Java framework, Struts 2 has undergone major changes as its successor. This framework is best suited for engineers developing modern Java EE web applications. With Struts 2, the Apache Software Foundation provides developers with a tool for developing web-oriented, enterprise-class applications and optimizing the entire development process.
3. Hibernate framework
Hibernate is an open source object-relational mapping framework. It encapsulates JDBC very lightweight objects, allowing Java programmers to use objects as they wish. Programming thinking to manipulate databases. Hibernate can be used in any situation where JDBC is used. It can be used in Java client programs or in Servlet/JSP Web applications. The most revolutionary thing is that Hibernate can replace CMP in the J2EE architecture that uses EJB. , complete the important task of data persistence. Hibernate can replace CMP in the J2EE architecture that uses EJB to complete the important task of data persistence. Mapping is very simple, it’s just mapping of pages, you’ll get it with more practice.
The above is the detailed content of What framework does JavaWeb use?. For more information, please follow other related articles on the PHP Chinese website!