🔊 优化日志输出, 完善日志信息, 便于调试.

This commit is contained in:
zhaojun1998
2020-06-26 21:35:08 +08:00
parent c1d29a46f5
commit 766a047ee1
33 changed files with 143 additions and 141 deletions

View File

@@ -38,8 +38,7 @@ public class LocalController {
@GetMapping("/file/{driveId}/**")
@ResponseBody
public ResponseEntity<Object> downAttachment(@PathVariable("driveId") Integer driveId, final HttpServletRequest request) {
String path = (String) request.getAttribute(
HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
String path = (String) request.getAttribute(HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE);
String bestMatchPattern = (String) request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE);
AntPathMatcher apm = new AntPathMatcher();
String filePath = apm.extractPathWithinPattern(bestMatchPattern, path);