首页>代码>SpringBoot集成OpenOffice实现Office文档在线预览>/springboot-office/src/main/java/com/simon/springbootoffice/config/CommonIntercepter.java
package com.simon.springbootoffice.config; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author Simon */ @Component public class CommonIntercepter implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3) throws Exception { } @Override public void postHandle(HttpServletRequest request, HttpServletResponse arg1, Object arg2, ModelAndView arg3) throws Exception { request.setAttribute("ctx", request.getContextPath()); } @Override public boolean preHandle(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2) throws Exception { return true; } }
最近下载更多
lironggang LV38
2023年7月21日
小屁孩 LV7
2023年5月24日
ssmtest LV5
2023年3月11日
crosa_Don LV18
2023年3月2日
jk-mack LV5
2023年2月19日
doutao6677 LV25
2023年2月10日
baize12345 LV1
2023年2月1日
Possess LV4
2023年2月1日
最代码官方 LV167
2023年1月30日
最近浏览更多
DeanYao LV2
2023年10月11日
zhaixunfei LV8
2023年9月9日
cxy LV1
2023年8月23日
woldxy LV12
2023年8月22日
wang_d LV12
2023年8月15日
dfkk_love LV11
2023年7月27日
liqi666 LV7
2023年7月26日
爱吃鱼的猫Vital LV6
2023年7月24日
lironggang LV38
2023年7月21日
szf123 LV12
2023年5月31日