
Controller Spring

Quiz
•
Professional Development
•
1st - 2nd Grade
•
Hard
Kiều Thị
Used 9+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Để lấy số 2 trong đường URI sau ta sử dụng method nào sau đây.
/customers/3/user/2
@GetMapping("/customers/3/user/2{userId}")
public String demo(@PathVariable String userId)
@GetMapping("/customers/{customerId}/user/{userId}")
public String demo(@PathVariable Long userId)
@GetMapping("/customers/{customerId}/2")
public String demo(@RequestMapping Long userId)
Không có đáp án đúng
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm dữ liệu cho view trong Spring, cách nào sau đây không dùng được
sử dụng phương thức addAttribute của ModelMap
sử dụng phương thức addAttribute của Model
sử dụng phương thức addObject của ModelAndView
sử dụng phương thức addAttribute của ModelAndView
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
** đại diện cho điều gì trong đoạn đường dẫn?
Đại diện cho 0 hoặc nhiều đoạn đường dẫn
Đại diện cho 0 hoặc nhiều ký tự
Đại diện cho 0 hoặc nhiều ký tự đặc biệt
Đại diện cho 0 hoặc nhiều ký tự số hoặc chữ
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Controller, việc sử dụng @RequestAttribute nhằm mục đích gì?
Khởi tạo tham số
Lấy các thuộc tính đã có
Lấy phương thức trong controller
Lấy 1 tham số trong controller
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Controller, việc sử dụng tiền tố "redirect" nhằm mục đích gì?
Chuyển hướng đến một phương thức
Chuyển hướng đến 1 trang jsp
Gửi 1 request mới
Không có đáp án đúng
Similar Resources on Wayground
10 questions
Introduction to Adobe XD

Quiz
•
2nd Grade - Professio...
10 questions
KỸ NĂNG THỦ LĨNH THANH NIÊN

Quiz
•
KG - 5th Grade
10 questions
Customer Support Quiz Maret 2022

Quiz
•
1st - 3rd Grade
8 questions
P#y#x: Pr#d#ct R#fr#sh#r & C#s# D#sc#ss##n

Quiz
•
1st Grade
10 questions
Khoa học tự nhiên 6 tiết 3,4

Quiz
•
1st Grade
10 questions
L3 Ôn tập CĐ 1 Bài 2 Bắt đầu làm việc với máy tính

Quiz
•
2nd Grade
10 questions
Amazon go

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Professional Development
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Proper and Common nouns

Quiz
•
2nd - 5th Grade
15 questions
Multiplication Facts (2,5,10)

Quiz
•
2nd - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
20 questions
nouns verbs adjectives test

Quiz
•
2nd Grade
20 questions
Sentence or Fragment?

Quiz
•
2nd - 5th Grade