Module
Context Module
Expression Language Module
JDBC Module
ORM Module
OXM Module
Java Messaging Service (JMS) module
Transaction Module
WEB Module
Web-servlet Module
Web-struts Module
Web-portlet Module
3. Spring Ioc/di (Control inversion/dependency injection)
The simple understanding is that the life cycle of the objects used in this program
back and forth between Java and XMLorg.springframework.test--simple encapsulation of test frameworks such as JUnitorg.springframework.transaction--declarative and simple programmatic transaction management for JDBC,HIBERNATE,JDO and JPAEnhancements to org.springframework.web.portlet--spring MVCorg.springframework.web.servlet--Support for j2ee6.0 servlet3.0The support of the org.springframework.web.struts--
mode: Factory pattern2 Locator Mode: Service locator pattern3 Dependency Injection mode. Dependency injection can be divided into three types: constructor injection (constructor injection) setter injection (setter injection) and pretext injection (interface injection)* * Simple implementation of IOCWhat is a di mechanism? (DI = IOC, dependence injection, inverse of control)Dependency Injection (Dependecy injection) and control inversion (inversion of controls) are the same concept, specifically
, beanpostprocessor will process it and automatically create a proxy object for the bean that satisfies the matching rule.http://blog.csdn.net/itomge/article/details/8861268http://uule.iteye.com/blog/894055Spring Weaving Concept Weaving (Weaving): The process of applying a facet (Aspect) to a target object to create a new proxy object, which generally occurs in the following time:
compile time : When a class file is compiled, this requires a special compiler to do so, such as AspectJ's
Tags: java EE spring database transaction mysqlSpring Operations transaction Management for connection to database 1, first of all, we know Spring manages transactions in two waysOr is it an annotated way ofWith @transactional in front of the service class, declare that all methods of the service require transaction management. Each business method starts with a
framework, providing IOC and dependency injection Characteristics. The basic concept here is beanfactory, which provides a classic implementation of the factory pattern to eliminate the need for procedural singleton patterns and really allows you to isolate dependencies and configurations from the program Logic.2.Spring context: The context package, built on the core package, provides a framework for object access, Some like the Jndi registrar. The c
This article is from my translation of the Infoq Chinese station, the original address is: Http://www.infoq.com/cn/news/2015/07/spring-javaeeIn the Java community, the battle between Spring and Java EE is an eternal topic. In this debate, preachers, architects and fans from two camps are sparing no effort to defend the
In the Java community, the battle between Spring and Java EE is an eternal topic. In this debate, preachers, architects and fans from two camps are sparing no effort to defend the dignity of the party and try to persuade each other to join their own camp, but the result is that it is difficult for both sides to persuade each other, and each has a good reason to m
Reprinted from: Http://www.infoq.com/cn/news/2015/07/spring-javaeeIn the Java community, the battle between Spring and Java EE is an eternal topic. In this debate, preachers, architects and fans from two camps are sparing no effort to defend the dignity of the party and try to persuade each other to join their own camp
Java Spring Java config annotations
Collation
Traditional spring is generally configured based on xml, but many JavaConfig annotations are added later. In particular, springboot is basically a clear java config. If you don't know about it, it's really not suitable. Note her
Personservicetest {private static Personservice personservice;@ Beforeclasspublic static void Setupbeforeclass () throws Exception {try {applicationcontext cxt = new Classpathxmlapplicat Ioncontext ("Beans.xml");p Ersonservice = (personservice) cxt.getbean ("Personservice");} catch (Exception e) {e.printstacktrace ();}} @Testpublic void Save () {for (int i = 0, i ResultsA bit of a twist in the middle, note that the value of the ref attribute inside the XML file must be copied, really TMD don't
Transferred from: http://www.kokojia.com/article/12598.htmlWhen learning a thing, if you want to understand it, it's best to think about how the framework is implemented internally, and how I would do it if I did it. I'll write an IOC di program below. Spring is the equivalent of a bean factory, you write your own bean, enter a configuration file, spring can help you automatically generate Bean object. Belo
Framework : The MVC framework is a full-featured MVC implementation of building Web applications;
√ What is a framework?
explanation One: develop a set of norms or rules (ideas) that everyone (programmers) in the specification or rule (thought) under work;
Explanation Two: Some cattle predecessors or a summary of the cattle predecessors of a set of solutions;
Two. Spring IoC (Control inversion) control inversion (inversion o
1. What is Spring?
Spring is an open source development framework for Java enterprise-class applications. Spring is primarily used to develop Java applications, but some of the extensions are for Web applications that build an EE platform. The
The above combs through the annotations to complete the component scanning and automatic assembly, below to learn how to use the explicit configuration of the assembly beanSecond, assemble the Bean through Java classThe Helloworldconfig class is defined earlier, and using the @componentscan and @configuration annotations, @Configuration annotations indicate that the class is a Java configuration class that
This year I have been thinking about the problem of the separation of the front and back of web development, and now there is a lot of snacks, with this problem in depth, and now the company many Web project control layer of the technical framework moved from STRUTS2 to Springmvc, I suddenly have a new question can not get the correct explanation , why do we do Java Web Development now, would choose a framework such as struts2 or SPRINGMVC, rather tha
Java Development Overview:The use of Java for Web application development has been around for nearly 20 years, from the original Servlet1.0 to the present so many frameworks, libraries and the entire ecosystem. After such a long period of development, Java, as a mature language, has evolved a very mature ecosystem, which is why many companies use
This year I have been thinking about the problem of the separation of the front and back of web development, and now there is a lot of snacks, with this problem in depth, and now the company many Web project control layer of the technical framework moved from STRUTS2 to Springmvc, I suddenly have a new question can not get the correct explanation , why do we do Java Web Development now, would choose a framework such as struts2 or SPRINGMVC, rather tha
This year I have been thinking about the problem of the separation of the front and back of web development, and now there is a lot of snacks, with this problem in depth, and now the company many Web project control layer of the technical framework moved from STRUTS2 to Springmvc, I suddenly have a new question can not get the correct explanation , why do we do Java Web Development now, would choose a framework such as struts2 or SPRINGMVC, rather tha
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.