Spring Jade Bird Cloud Question Bank

Source: Internet
Author: User
Tags instance method

@Autowired default Bytype, @Resource byname

This topic examines the SPRINGIOC three kinds of injection methods. SPRINGIOC Three injection methods: interface injection, SetPoint injection, construction injection, no pointer injection. So the D option is wrong. So the answer choice D

I always thought the focus was on the point remember to select AD

This topic examines the concepts associated with AOP. Why not choose B, because spring uses the proxy class to wrap facets and weave them into spring-managed beans, so it's oriented horizontally. So the B option is wrong. Why not choose C, because the proxy class is disguised as the target class, it intercepts the call to the method in the target class, so that the caller calls the target class first into the call masquerading class, the masked class first executes the slice, and then forwards the call to the real target bean. So it is concerned with the face, not the point. So the option is wrong. So the answer to select AD

This topic examines spring-aspect-oriented programming through an AOP namespace to declare methods in JavaBean as enhanced processing, the ABC statement is correct, and if the target method returns a void value, the enhanced processing is also executed. D is wrong, so the correct answer is D.

If you list all the SQL mapping files in Mybatis-congiglocation.xml, it is cumbersome to use Sqlsessionfactorybean's Mapperlocations property to scan the SQL mapping file, you can use the * As a wildcard, multiple SQL mapping files are loaded at once, but you need to configure mybatis-congiglocation.xml for integration, so you should choose D

Just remember that the constructor initial index is 0.

This topic examines the different ways in which spring implements AOP in comparison. Static weaving is at compile time, slice directly in bytecode form to the target bytecode file, no impact on system performance, but not flexible. Dynamic agent is in the runtime, after the target class is loaded, dynamically generate proxy classes for the interface, the slices are woven into the proxy class, the interface needs to be implemented and more flexible. So a, B is wrong. The principle of dynamic bytecode generation is that when the target class is loaded, the dynamically constructed bytecode file generates the subclass of the target class, and the tangent logic is added to the subclass, the advantage is that no interface can be woven but the instance method of the extended class is final, it cannot be woven; the principle of the custom ClassLoader is that before the run-time target is loaded , the plane logic is added to the target bytecode, most of the classes can be woven into the code, if other class loaders are used, then these classes will not be woven into.

Select AB

Select C

<p>spring loading order is the first constructor, one ad is wrong, the constructor executes the dependency injection, then to Init-method, so it is wrong, C is correct </p>

Option C is correct. Abd are annotations to the definition bean for the IOC

d option Error, Defaultreadonly: Sets whether the data source can only perform read-only operations, the default value is False

Sqlsessionfactory does not need to be configured in spring

Spring Jade Bird Cloud Question Bank

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.