接口缓存-MaxAge

 

@SuppressWarnings("rawtypes")
	@GetMapping("/info")
	public Result getInfo(String shopId, HttpServletResponse response) {
		if(StringUtils.isBlank(shopId)){
			return Result.failure("参数不能为空");
		}
		response.setHeader("Cache-Control", "max-age=120");
		return Result.success(shopAnalysisFacade.getInfo(shopId));
	}

  

转载于:https://www.cnblogs.com/wanhua-wu/p/11326280.html

你可能感兴趣的:(接口缓存-MaxAge)