Which three types can be used as @Controller method arguments? (Choose three.)

Which three types can be used as @Controller method arguments? (Choose three.)

A. Locale

B. Principal

C. Language

D. Session

E. Request

F. HttpSession

Answer: ABF

Explanation:

A. Locale

This is true because the Locale argument can be used to resolve the current locale that the client is using, based on the Accept-Language header or a cookie1. B. Principal

This is true because the Principal argument can be used to access the currently authenticated user, if any1.

F. HttpSession

This is true because the HttpSession argument can be used to access the current session, if any1.

Note that this argument is not required and will be null if a session does not exist.

Reference: https://docs.spring.io/spring-framework/docs/3.0.0.M4/spring-framework-reference/html/ ch15s03.html

Latest 2V0-72.22 Dumps Valid Version with 60 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments