
JavaWeb - Session10
Authored by haibt@rikkei.edu.vn rikkei
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chú thích nào sau đây được sử dụng để đánh dấu một class là một Spring MVC Controller?
@Component
@Service
@Repository
@Controller
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chú thích @Autowired trong Spring được sử dụng để làm gì?
Khai báo một bean mới.
Tự động tiêm (inject) các dependencies.
Đánh dấu một phương thức xử lý request.
Cấu hình cơ sở dữ liệu.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sự khác biệt chính giữa @Controller và @Component là gì?
Không có sự khác biệt, chúng hoàn toàn giống nhau.
@Component là một chú thích chung, trong khi @Controller là một loại @Component chuyên biệt cho tầng web.
@Controller chỉ có thể được sử dụng với các lớp Service.
@Component chỉ được sử dụng cho các lớp Repository.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chú thích nào được sử dụng để ánh xạ (map) một HTTP POST request tới một phương thức xử lý trong Controller?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để nhận giá trị của một tham số từ URL request, ví dụ: /users?id=123, trong phương thức xử lý của Controller, chúng ta sử dụng chú thích nào?
@ModelAttribute
@RequestParam
@RequestBody
@RequestBody
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đối tượng nào sau đây được sử dụng để truyền dữ liệu từ Controller ra View trong Spring MVC?
HttpServletRequest
HttpSession
Model (hoặc ModelMap, ModelAndView)
ServletContext
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi sử dụng ModelAndView để truyền dữ liệu và chỉ định tên View, bạn làm thế nào?
Sử dụng phương thức addObject() và setViewName().
Sử dụng phương thức addAttribute() và setView().
Sử dụng phương thức put() và render().
Không thể thực hiện cả hai việc này cùng lúc với ModelAndView.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Chapter 10: Incident Detection and Analysis
Quiz
•
Professional Development
14 questions
Network Common Ports (HARD)
Quiz
•
Professional Development
21 questions
Quiz for Puducherry State Connect Programme
Quiz
•
Professional Development
14 questions
Domain 2 Acronym Rapid Fire
Quiz
•
Professional Development
20 questions
Asesmen Formatif Pertemuan 1 L0
Quiz
•
Professional Development
15 questions
Quiz1 30.07.2025
Quiz
•
Professional Development
14 questions
Java WEb - Session03
Quiz
•
Professional Development
15 questions
Chuyển đổi số và ứng dụng CNTT trong Giáo dục
Quiz
•
Professional Development
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
44 questions
Would you rather...
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
14 questions
Valentine's Day Trivia!
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development