Shopping website Learning Note 3

Source: Internet
Author: User
Tags repetition

1. Write a class that is highly reusable: generics, reflection

2. Build SPRING+JPA (Hibernate) First and then build struts

3. Integrate SPRING+JPA (Hibernate) First: The jar files of the two frameworks are brought in

The selection of the context path for the new project: Select the context path because you want to implement a tomcat to deploy multiple applications, for testing purposes, a large company will not do so

Processing path:/xxx.do

<form action= "/context path/xxx.do"/>

So generally is the time to build a project does not choose a good context path, in <form action= "/xxx.do"/>, There is no context path, more convenient;

4. A large repetition of code additions and deletions the check is encapsulated: generic T can also be w,serializable (Entity ID must be serialized), and reflection is encapsulated

5.spring will only apply a notification of things to methods defined in this class (advice)

6. Paging repetition is also very large: the paging is also encapsulated;

Shopping website Learning Note 3

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.