Java EE notes (13)

Source: Internet
Author: User

#单一职责原则

A class does only one thing

#开闭原则

Expand Open, modify the source closed

#动态代理

1 interface-based approach for the dynamic agent of the JDK
2 class-based approach to Cglib Proxy

#SSH整合

1.Spring (Container)
1> Importing Jar Packages
2> to test if spring works
2.Hibernate (Persistence layer)
1> Importing Jar Packages
2> Test Hibernate to work
3> integration into spring [spring takes over Hibernate]
To configure the Hibernate.cfg.xml configuration in the spring configuration file
1> Configuring a Data source (DBCP/C3P0/JDBC/DRUID)
2> configuration sessionfactory (need to configure a data source for sessionfactory)
3> Configuring a transaction manager
4> managing transactions through AOP
3.struts2 (Web tier)
1> Importing Jar Packages
2> Test Struts2 to work
3> integration into Spring


Java EE notes (13)

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.