Framework Design-Chapter 18 BOOT Customer Management System-Answers to Exercises

Course introduction: "Framework technology" is the core course of the software engineering major, is a limited elective course for this major, is a Java application development course, and is the main direction of employment for students of this major.
Note: The answers to the exercises in other chapters of frame design are also in this column of "spring frame design".

1. Fill in the blanks

  1. Two main functional modules are implemented in the system: [User Login Module] and [Customer Management Module].
  2. [@Responsebody] Annotations are generally used when fetching data asynchronously.
  3. In the BOOT customer management system, the new customer information window is realized through the modal box code of [Bootstrap].
  4. Query operations can usually be divided into query by condition and [Query All].
  5. In practical applications, whether it is an enterprise-level project or an Internet project, the most used one must be [Query Operation].

2. Judgment

  1. The delete operation only needs to pass the id information of the deleted customer to the background delete method. (√)
  2. During the modification operation, the data in the modification information window needs to be cleared. (×)
  3. When @Responsebody annotation is used with @RequestMapping annotation, the return value of the method will be available on the page. (√)
  4. Usually in the system, the queried data will be displayed in pages. (√)
  5. When setting the propagation behavior of a transaction, you need to set the value of the read-only attribute of the query-related method to true. (√)

3. Multiple choice questions

  1. The level at which user requests are intercepted. (D)
    A: persistent object layer
    B: data access layer
    C: business logic layer
    D: Web presentation layer
  2. Among the following options, it is not the function of BOOT customer management system. (B)
    A: User login
    B: User management
    C: Query customer
    D: Modify customer
  3. In the following options, the wrong statement about the Web presentation layer is. (C)
    A: This layer mainly includes the Controller class and JSP page in Spring MVC.
    B: The Controller class is mainly responsible for intercepting user requests.
    C: The Controller class will call the business logic method of the corresponding component in the business logic layer to process the user response.
    D: The Controller class will return the result of the request to the JSP page.
  4. The following statement about the BOOT customer management system user login module is incorrect. (D)
    A: During the user login process, it is necessary to verify whether the user name and password are correct. If the user name is correct, you can successfully log in to the system, and the system will automatically jump to the home page.
    B: During the user login process, the user name and password must be verified first. If it is wrong, an error message will be displayed on the login page.
    C: In order to ensure the security of the system, the user must implement login authentication when logging in.
    D: In order to ensure the stability of the system, the user must implement login authentication when logging in.
  5. The following statement about the customer management module is correct. (A)
    A: The query operation can usually be divided into conditional query and query all.
    B: When adding a customer operation, the customer information needs to be displayed in the new customer information window.
    C: When revising customers, all customer information must be revised to save and revise.
    D: When deleting the customer, it only changed the state of the data in the data table, but did not delete the data in the database.

4. Short answer questions

  1. Please briefly describe how to implement login verification.
    To implement login verification, you first need to create a login interceptor class, which needs to intercept all requests except user login requests, and judge the user's login status. Only the logged-in user requests can continue to execute, otherwise The user request will be forwarded to the system login page and a login prompt will be given. After writing the login interceptor class, you also need to configure the interceptor class in the Spring MVC configuration file. After the configuration is complete, you can use it.

It is not easy to organize, please like and support if you have any help! Thank you! Follow me and let you learn more about software engineering!

"recommended article"
Framework Design-Chapter 1 Basic Application of Spring-Exercise Answer
Framework Design-Chapter 2 Spring Bean-Exercise Answer
Framework Design-Chapter 3 Spring AOP-Exercise Answer
Framework Design-Chapter 4 Spring Database Development-Exercise Answer
Framework Design-Chapter 5 Spring Transaction Management-Exercise Answer
Framework Design-Chapter 6 Getting Started with MyBatis-Exercise Answer
Framework Design-Chapter 7 MyBatis Core Configuration-Exercise Answer
Framework Design-Chapter 8 Dynamic SQL-Exercise Answer
Framework Design-Chapter 9 MyBatis Association Mapping-Exercise Answer
Framework Design-Chapter 10 MyBatis and Spring Integration-Exercise Answer
Framework Design-Chapter 11 Getting Started with Spring MVC-Exercise Answer
Framework Design-Chapter 12 Spring MVC Core Classes and Annotations-Exercise Answer
Framework Design-Chapter 13 Data Binding-Exercise Answer
Framework Design-Chapter 14 JSON Data Binding and RESTful Support-Exercise Answer
Framework Design-Chapter 15 Interceptor-Exercise Answer
Framework Design – Chapter 16 File Upload and Download –
Design of Exercise Answer Framework – Chapter 17 Integration of SSM Framework – Exercise Answer Case
Framework Design-Chapter 18 BOOT Customer Management System-Answers to Exercises

Published 99 original articles · Like 49 · Visitors 40,000+

Guess you like

Origin blog.csdn.net/weixin_46218781/article/details/105467015