Home > Back-end >  javaee
javaee

Time:10-14

1.

2. The advantages of the Spring framework:
1) inversion of control to the creation of the object to the spring, simplifies development, reduce the coupling between the code and invasive,
2) convenient to declarative things management program, we can finish to things only through configuration management,
3) convenient integration framework of various excellent spring not exclude all kinds of excellent framework, its internal provides for a variety of excellent framework such as (struts 2, hibernate, mybatis, quartz, jpa) directly, such as
4) convenient testing program, spring support for the takeup, through annotations convenient test program,
5) reduce the difficulty of using JavaEE API and JDBC, Javamail, remote call, etc., the spring for the encapsulation, make the use of these API difficulty greatly reduced,
3. The spring's Ioc and the concept of DI understand
IoC (Inversion of Control Inversion of Control) : is one of a kind of object oriented programming design principle, is used to reduce the coupling between the computer code, its basic idea is: with the help of "third party" realize decoupling has dependencies between objects,
DI - Dependency Injection, namely "Dependency Injection" : dependencies between components is determined by container at runtime, namely by dynamic containers will be a Dependency Injection to the components of