Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎HttpServletResponse传递给的参数HandlerInterceptor#postHandle是只写的:那里没有getStatus()方法。
HttpServletResponse
HandlerInterceptor#postHandle
getStatus()
关于如何找出HttpStatus请求后设置的任何想法?
HttpStatus
你需要这个进行单元测试吗?如果是这样,只需使用 MockHttpServletResponse,其中定义了 getStatus()。