Java Development Engineer (web direction)-04.Spring Framework-3rd chapter. AOP Technology

Source: Internet
Author: User
Tags throw exception

Spring Framework-AOP Overview Note https://my.oschina.net/hava/blog/758873
Spring Framework-AOP using note https://my.oschina.net/hava/blog/758881

AOP Technology Unit Test

Return

This time has to be divided into: 7.00/7.00, the time of submission for this test is: 2017-09-11, if you think the test results are not ideal, you can choose to do it again. 1Radio (2 min)

The following is an error in the description of AOP:

score/Total
    • A.

      The code can be decoupled by AOP;

    • B.

      AOP can be used for function execution;

    • C.

      AOP can simplify code;

    • D.

      AOP can only be used for public functions;

      2.00/2.00
2Radio (2 min)

Which of the following advice types are not part of AOP:

score/Total
    • A.

      Before returning;

      2.00/2.00
    • B.

      After finally;

    • C.

      After returning;

    • D.

      before;

3Multi-choice (3 points)

With regard to pointcut expressions, it is wrong to say:

score/Total
    • A.

      The parameter list matching pattern of the function must be declared;

    • B.

      The modifiers of the function must be declared;

      1.00/3.00
    • C.

      It is necessary to declare the matching pattern of the function throwing exception;

      1.00/3.00
    • D.

      It is necessary to declare the matching pattern of the package of the class in which the function resides;

      1.00/3.00
AOP Technology Jobs

Http://zhanjingbo.site/14759932535473.html

1 (12 points)

Complete a basic application, provide a number of service (>=2), each service provides basic additions and deletions of the interface (implementation of arbitrary, such as output a line of information), Through AOP, all service interfaces are guaranteed to return after a normal call and when an exception is thrown (service interface impersonation), the following information is typed: function name, function parameter, and description of the event that occurred: normal return or throw exception.

(Note: Need to find information to understand Joinpoint's API)

Basic requirements: A project description document must be attached, indicating the running result () of each function point counterpart, the interface description of the project or the key code (do not post all the code), etc. to reflect the contents of the project results. This project documentation must be present when submitting the job, otherwise it will affect the final score.

Java Development Engineer (web direction)-04.Spring Framework-3rd chapter. AOP Technology

Related Article

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.