Java Interview Summary

Source: Internet
Author: User

I. Working principles and concepts of spring's core (IOC and DI,AOP).

1.IOC Control Inversion

Concept: Control is shifted from the object itself to the container; The container creates an instance from the configuration file and creates a dependency between the individual instances
Core: Bean factory; In spring, the individual instances created by the Bean factory are called beans.

2.Di Dependency Injection

In fact, Di and IOC are the same concept, because in the Applicationcontext.xml configuration file, the bean and bean are dependent on each other when they are maintained by ref, so they are called dependency injection. That is, control reversal.

Because ApplicationContext is very memory-intensive, you must ensure that there is only one ApplicationContext instance in a project.

3. What is Spring

Spring is a container that can take over beans at various levels (Action/domain/pojo/javabean), and can configure the bean-to-bean relationship to use beans in Java code only It is possible to use ApplicationContext's Getbean (The bean ID in the config file) method.

4.AOP Plane-oriented programming

Spring AOP Reference: http://www.cnblogs.com/hongwz/p/5764917.html

Two. What is the principle of MVC and the principle of SPRINGMVC?

Java Interview Summary

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.