Choose a topic to test your knowledge and improve your Spring skills
To add attributes to the model.
To access the binding and validation result for the command object.
To notify its completion of session processing.
Controller Class renders the objects passed by the controller’s handler method.
Parameter used to specify a configuration file.
The @RequestMapping annotation can be applied to the class level only.
Bean classes pre-registered in the web application context by default.
By default, @RequestMapping gets all the POST Requests.
Callback methods provided by HandlerInterceptor to implement.
Interface implemented by locale resolver.
You can define a locale resolver by registering a bean of type LocaleResolver in the web application context.
Default localeResolver used by Spring.
AcceptHeaderLocaleResolver esolves locales by inspecting the accept-language header of an HTTP request.
Alternative way to resolve locales.
Property which indicates how many seconds this cookie should be persisted.
Method used to change user’s locale.
Property of LocaleChangeInterceptor used to customize parameter name.
LocaleChangeInterceptor can only detect the parameter for the handler mappings that enable it.
Parameter which can change user’s locale by any URL.
Interface used to resolve text messages.
Tag used by view to resolve text messages.
The ResourceBundleMessageSource implementation resolves messages for different locales.
cookieName is used by localeResolver to customize the cookie used.
The cookieMaxAge value when browser is closed.
Interface for Dispatcher Servlet to auto detect view resolver beans.
ViewResolver which maps each view name tol an application’s directory.
InternalResourceViewResolver resolves view names into view objects of type.
By default, XmlViewResolver loads view beans from /WEB-INF/views.xml which is final.
View beans from a resource bundle is loaded by.
Views that can’t be resolved by InternalResourceViewResolver.
Properties used to determine the correct content and type for a certain web requests.
Inspection of header is done by which of the following.
ContentNegotiatingViewResolver resolver configuration sets up the resolver to have the highest priority among all resolvers.
The ContentNegotiatingViewResolver resolver first determines the media type for a request based on which of the following criteria?
In a Spring MVC application, you can register one or more exception resolver beans in the web application context to resolve uncaught exceptions.
To configure the exception mappings in the web application context.
Annotation which allows a controller’s field to be assigned using Spring Expression Language(SpEL)
SpEL statements are recognizable.
Tag, used to define a location in which to place errors in case a form.
To validate Java beans in a web application using annotations.
Spring MVC supports generating Excel files using which of the following libraries.
To use JSR-303 bean validation in a web application, dependencies to be added in maven.
Annotation which indicates a field cannot be a null.
Annotation used to indicate a field has to have a minimum of 2 characters.
Annotation which receives a value in the form regexp=”.+@.+\.[a-z]+”.
A field named validator is of type.
Validator field is not assigned to any bean, but rather a factory class of the type.
To hold any errors detected from validating the instance of beans.
Spring doesn’t cope up with pdf and excel views.
The view classes for Excel view is/are:-