adplus-dvertising
frame-decoration

Question

The ContentNegotiatingViewResolver resolver first determines the media type for a request based on which of the following criteria?

a.

It checks a request path extension

b.

If a request path has an extension but no match can be found in the default mediaTypes section of the ContentNegotiatingViewResolver bean

c.

If no extension is present in a request path, the HTTP Accept header of the request is used

d.

All of the mentioned

Posted under Java Spring Framework

Answer: (d).All of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The ContentNegotiatingViewResolver resolver first determines the media type for a request based on which of the following criteria?

Similar Questions

Discover Related MCQs

Q. In a Spring MVC application, you can register one or more exception resolver beans in the web application context to resolve uncaught exceptions.

Q. To configure the exception mappings in the web application context.

Q. Annotation which allows a controller’s field to be assigned using Spring Expression Language(SpEL)

Q. SpEL statements are recognizable.

Q. Tag, used to define a location in which to place errors in case a form.

Q. To validate Java beans in a web application using annotations.

Q. JSR-303 or bean validation can access beans through annotations.

Q. For validating beans Spring supports.

Q. JSR-303 can’t access java beans directly.

Q. Annotation which indicates a field cannot be a null.

Q. Annotation used to indicate a field has to have a minimum of 2 characters.

Q. Annotation which receives a value in the form regexp=”.+@.+\\.[a-z]+”.

Q. A field named validator is of type.

Q. Validator field is not assigned to any bean, but rather a factory class of the type.

Q. To hold any errors detected from validating the instance of beans.

Q. To use JSR-303 bean validation in a web application, dependencies to be added in maven.

Q. Spring doesn’t cope up with pdf and excel views.

Q. Spring MVC supports generating Excel files using which of the following libraries.

Q. The view classes for Excel view is/are:-

Q. Spring MVC supports generating PDF files using which of the following libraries.