一、在pom文件中添加依赖 1 <!-- 集成redis --> 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-data-redis</artifactId ...
分类:
编程语言 时间:
2020-01-11 18:08:46
阅读次数:
905
RestTemplate是spring封装的,使用起来更加简单。 接收: @ApiOperation(value = "restTemplate测试", notes = "restTemplate测试", httpMethod = "POST", response = BaseResult.clas ...
分类:
编程语言 时间:
2020-01-11 13:12:28
阅读次数:
102
log4j.properties log4j.rootLogger=INFO,Console,File log4j.appender.Console=org.apache.log4j.ConsoleAppender log4j.appender.Console.Target=System.out l ...
分类:
编程语言 时间:
2020-01-10 22:03:48
阅读次数:
94
下载代码如下: System.Web.HttpContext.Current.Response.Clear(); System.Web.HttpContext.Current.Response.ClearHeaders(); System.Web.HttpContext.Current.Respon ...
传参格式 后端接收并在SQL匹配 @GetMapping(value = "xj/node/openApi/subnets") @ApiOperation(value = "查询openApi子网接口", httpMethod = "GET", response = String.class) pu ...
分类:
编程语言 时间:
2020-01-10 12:41:22
阅读次数:
308
Mock可以模拟一个http接口的后台响应,可以模拟request,response 下载 moco-runner-0.11.0-standalone.jar 下载链接: https://pan.baidu.com/s/1bmFzvJPRnDlQ-cmuJ_3iRg 提取码: kpjv 确保安装了j ...
分类:
其他好文 时间:
2020-01-10 00:37:39
阅读次数:
160
[TOC] python中使用redis 安装依赖 使用的三种方式 直接使用 连接池使用 缓存使用:要额外安装 django redis ...
分类:
编程语言 时间:
2020-01-09 21:01:23
阅读次数:
91
FileStreamResult 抛出异常: InvalidOperationException: Response Content-Length mismatch 解决方案: Stream 必须 seek begin 伪代码如下: ...
分类:
其他好文 时间:
2020-01-09 13:10:19
阅读次数:
134
使用fetch进行数据请求返回response对象,response.json报错。原因是response中含有特殊字符。 fetch(url).then(response => response.json()) .then(data => console.log(data)) .catch(e = ...
分类:
Web程序 时间:
2020-01-08 14:20:53
阅读次数:
183
Scrapy源码 Response对象 """This module implements the Response class which is used to represent HTTPresponses in Scrapy.See documentation in docs/topics/r ...
分类:
其他好文 时间:
2020-01-08 00:53:35
阅读次数:
190