首页
›
答案
›
题库
›
慕课
›
未分类
ContainerRequestContext或ContainerResponseContext必须在API方法前使用@注解进行引用才可以工作
ContainerRequestContext或ContainerResponseContext必须在API方法前使用@注解进行引用才可以工作
A.正确
B.错误
正确答案:错误
标签:
Web服务与RESTful技术
注解
方法
上一条:
ContainerResponseContext是用于处理响应的过滤器上下文,可以为我们提供诸如响应头部域、响应包体等数据。
下一条:
ContainerRequestFilter的filter方法中因为没有ContainerResponseContext参数,并且filter方法无返回值,因此ContainerRequestFilter只能接收客户端信息,无法向客户端返回响应数据。