提交 f4d628db authored 作者: liujie's avatar liujie

设置默认下载的文件

上级 1bbb1932
......@@ -32,6 +32,8 @@ public class MvcConfig extends WebMvcConfigurationSupport {
registry.addResourceHandler("doc.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler("/static/**")
.addResourceLocations("classpath:/static/");
}
@Override
......
......@@ -147,7 +147,6 @@ public class EvaluationController {
@RequestMapping(value="/download",method= RequestMethod.POST)
@AuthAnnotation(code = {"000800"})
public ResponseEntity findSearch(@RequestBody Download download){
return ResponseEntity.ok("http://120.55.57.35:12345/static/uplaods/a36b17568d4e466dacf9f088a29b4dbc.docx");
return ResponseEntity.ok("http://localhost:8078/static/defult.docx");
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论