framework/src/main/java/com/yuanchu/mom/config/OpenFifer.java
@@ -27,7 +27,8 @@ @Value("${outPath}") private String outPath; @Value("${wordUrl}") private String wordUrl; public void addResourceHandlers(ResourceHandlerRegistry registry) { //配置拦截器访问静态资源 @@ -38,6 +39,7 @@ //设置文件虚拟路径映射 registry.addResourceHandler("/img/**").addResourceLocations("file:"+filePath+"/"); registry.addResourceHandler("/outPath/**").addResourceLocations("file:"+outPath); registry.addResourceHandler("/word/**").addResourceLocations("file:"+wordUrl+"/"); } @Override