Can we use interceptor to add response header before sending the response to the client ?
1.Yes
2.No
Posted Date:-2020-12-01 07:50:30
Can we use Interceptor to add the request header before sending to the controller ?
1.Yes
2.No
Posted Date:-2020-12-01 07:44:46
Choose methods in Spring boot -Interceptor -HandlerInterceptor interface
1.preHandle()
2.postHandle()
3.afterCompletion()
4.All above three
Posted Date:-2020-12-01 08:05:40
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
Posted Date:-2020-12-01 07:29:57
postHandle() method arguments are ?
1.HttpServletRequest request, HttpServletResponse response
2.Object handler, ModelAndView modelAndView
3.both
4.Only 2
Posted Date:-2020-12-01 08:13:45
return type of preHandle()
1.boolean
2.void
3.srting
4.Any Object
Posted Date:-2020-12-01 08:14:59
Spring Boot -Interceptor to work on it .We need create class supported
1.@Component
2.class should implemented HandlerInterceptor interface.
3.both
4.None
Posted Date:-2020-12-01 07:57:49
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 .
Posted Date:-2020-12-01 08:10:35
Spring Boot support Interceptor ?
1.true
2.false
Posted Date:-2020-12-01 07:25:43
To register a Spring boot Interceptor with InterceptorRegistry use
1.WebMvcConfigurerAdapter
2.WebSpringBootConfigurerAdapter
3.WebSpringbootAdapter
4.None
Posted Date:-2020-12-01 08:45:31