首页>代码>SpringBoot集成OpenOffice实现Office文档在线预览>/springboot-office/src/main/java/com/simon/springbootoffice/config/WebMvcConfig.java
package com.simon.springbootoffice.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** * @author Simon */ @Configuration public class WebMvcConfig extends WebMvcConfigurerAdapter { @Autowired private CommonIntercepter commonIntercepter; @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(commonIntercepter).addPathPatterns("/**"); super.addInterceptors(registry); } }
最近下载更多
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日