Pojo-based development mode (day03)

Source: Internet
Author: User

The last article discussed spring's design goal: Making Jee development easier.

Okay, as a Java developer, we should all know the Struts framework, and do not know the differences between struts1 and struts2.

First, the two are almost completely different frameworks, and struts2 is more like an upgraded version of another framework webwork. Of course, what we want to discuss here is not struts2, but the advantages of struts2:

The development mode based on action pojo is still understood by code:

Struts2

Public class commonaction {}

Or SSH

@ Controllerpublic class commonaction {}

As an action class at the control layer, in struts2 or SSH framework applications, you no longer need to inherit classes or implement interfaces, which largely releases coupling, from my understanding, this is the pojo-oriented development mode, which is also the advantage of beanfactory implemented by the Spring IoC design mode. dependencies are managed by spring containers.

Pojo-based development mode (day03)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.