Mvc:
Definition of MVC:M: Business logic processing. "Business model"V: The part that handles the display of the data. "such as XML layout file"C:activity handles user interaction issues. "Activity in MVC plays the role of C."
Features of MVC:① and low coupling.②, scalability is good.③ and module responsibilities are clearly divided.
An example of
execution.Surround notification is one of the most common types of notifications. Most interception-based AOP frameworks, such as Nanning and JBOSS4, provide only surround notifications.The concept of pointcut (pointcut) and connection point matching is the key to AOP, which makes AOP different from other old technologies that simply provide interception functionality.The pointcut enables the location notification (advice) to be independent of the OO hierarchy. For example, a around notificatio
the Java 5 annotation.Spring's MVC Framework64. What is the Spring MVC framework?Spring provides a full-featured MVC framework for building Web applications. The spring framework can be easily fused with other
). In the process of populating the handler, depending on your configuration, Spring will do some extra work for you: Httpmessageconveter: Converts the request message (such as Json, XML, and so on) to an object, converting the object to the specified response information. Data Transformation: Data conversion for a request message. such as string conversion to Integer, double, and so on. Data is initialized: Data is formatted for the request messag
maintainability and non-repetition of wheel-making. For example, all spring templates (JDBC,REST,JPA, and so on) have the following advantages: they are built in a consistent way, so you can skip these general steps to focus on more important business logic.
Spring MVC is not necessarily the best web framework. There are other, for example, Struts 2,wicket a
This article tells the Spring,hibernate,struts Classic interview pen question and its reference answer. Share to everyone for your reference, specific as follows:
1.Hibernate working principle and why to use?
Principle:
1. Read and resolve configuration files2. Read and parse mapping information, create Sessionfactory3. Open Sesssion4. Create Transaction Transation5. Persistent operation6. Submission of
Summary of the interview questions of Spring and SPRINGMVC
Application scenarios, AOP principles, benefits of AOP in 1.Spring.
A: Aop--aspect oriented programming is programming for facets and is used to encapsulate crosscutting concerns in the following scenarios:
Authentication permissions, Caching cache, context pa
Spring Boot interview Questions
1) What is Spring Boot?Spring Boot is a spring module which provides RAD (Rapid application development) feature to Spring framework.It's used to c
uses an independent AOP approach. This leads to the profile of struts is still larger than spring MVC, although the configuration of struts can inherit, so I think in terms of use, Spring MVC use more concise, development efficiency Spring
Spring, hibernate, struts interview questions, hibernatestruts
1. Is Action thread-safe? If there is no way to ensure the thread security of Action? If yes, explain the reasonNoDeclare local variables, or expand RequestProcessor to create an Action each time, or use scope = "prototype" in spring to manage
2.
Spring, hibernate, Struts interview questions from: http://shwenwen.itpub.net/post/34911/486887
How does hibernate work and why?Principle:1. Read and parse the configuration file2. Read and parse the ing information and create sessionfactory3. Open sesssion4. Create transaction Transation5. Persistent operations6. Submit the transaction7. Disable session8. Disa
completed return Modelandview7, Handleradapter the controller execution results Modelandview returned to Dispatcherservlet8. Dispatcherservlet Pass Modelandview to Viewreslover view parser9, Viewreslover after parsing return to the specific view10. Dispatcherservlet the rendered view based on the view (populate the model data into the view).11. Dispatcherservlet Response UserFour, Spring MVC design Advanta
is included in the Intercept submission parameter
可以在@RequestMapping注解里面加上params="type=test"
Springmvc what objects are used to pass data from the background to the foreground
Through the Modelmap object, you can put the object inside the object with the Put method, the foreground can be obtained by El Expression
How to put the data inside the Modelmap into the session
You can add a @sessionattributes annotation to a class that contains a stri
Configuration is the normal configurationI'm not going to stick it out.The key is the automatic injection of service packsBe sure to scan in the parent container , or the transaction cannot be rolled backThe so-called parent containerSpring and spring MVC are a little differentSimply speaking, spring is the parent container.Spring
Mapper.xml file is a SQL mapping file that is configured with SQL statements that manipulate the database. This file needs to be loaded in Sqlmapconfig.xml. 4. Construct MyBatis as a session factory with configuration information such as Sqlsessionfactory environment 5. The session factory creates a sqlsession that is a session, and the operational database needs to be done through sqlsession. 6. MyBatis the bottom layer customizes the Executor actuator interface operation databa
company's project before the interview, find a way to set up, you can modify your previous project experience, so that it will be done with the company's future projects have a certain degree of similarity, so that the effect is better.3 by asking questions, say the highlights that you haven't been asked.Here is not recommended to say directly, "I actually master the XX technology, but you did not ask", be
Summary of Java back-end development interview questions of major companies, and java back-end interview questions
ThreadLocal (thread variable copy)
Synchronized implements Memory sharing. ThreadLocal maintains a local variable for each thread.
It uses space for time, which is used for data isolation between threads
you like? Have you ever wondered what would happen if you developed minecraft first?
What website do you like?
What books do you recommend as necessary?
Last but not least, please explain the following terms: DRY, SOLID, YAGNI, optimistic lock and pessimistic lock), MVC and MVVM (can be added by yourself)
In addition, the ability to write code cannot be ignored. They can show their own code or implement a function that you need on site. Really co
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.