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.
我通过在我的控制器中调用 response.getOutputStream 劫持了速度模板的正常处理,并且我确实得到了一个图像,但是每当一个图像生成。有没有办法告诉velocity不要为某个控制器解析文件?
从控制器的(或)方法返回null以指示您已经处理了响应并且不应呈现视图。handleRequest()handleRequestInternal()
handleRequest()
handleRequestInternal()
API 文档