Can we use interceptor to add response header before sending the response to the client ?
1.Yes
2.No
Can we use Interceptor to add the request header before sending to the controller ?
1.Yes
2.No
Choose methods in Spring boot -Interceptor -HandlerInterceptor interface
1.preHandle()
2.postHandle()
3.afterCompletion()
4.All above three
Interceptor in Spring Boot can perform operations under which situations?
1.Befor sending requets to the controller .
2.Before sending response to the client .
3.Both
4.Only 1
postHandle() method arguments are ?
1.HttpServletRequest request, HttpServletResponse response
2.Object handler, ModelAndView modelAndView
3.both
4.Only 2
return type of preHandle()
1.boolean
2.void
3.srting
4.Any Object
Spring Boot -Interceptor to work on it .We need create class supported
1.@Component
2.class should implemented HandlerInterceptor interface.
3.both
4.None
Spring Boot Interceptor -HandlerInterface -preHandle() method
1.always return true -resopnse to the client .
2.always return true -request to the client .
3.always return false -resopnse to the client .
4.always return true -request to the client .
Spring Boot support Interceptor ?
1.true
2.false
To register a Spring boot Interceptor with InterceptorRegistry use
1.WebMvcConfigurerAdapter
2.WebSpringBootConfigurerAdapter
3.WebSpringbootAdapter
4.None