- 博客(4)
- 收藏
- 关注
原创 RestTemplate 添加Gzip支持
RestTemplate 添加Gzip支持使用restTemplate访问接口抛出异常Caused by: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens; nested
2021-04-26 11:49:24 1827
原创 RestTemplate添加日志打印拦截器
RestTemplate添加日志打印拦截器添加RestTemplate Bean配置添加RestTemplate Bean配置 @Bean public RestTemplate restTemplate() { RestTemplate restTemplate = new RestTemplate(); //将RequestFactory换成BufferingClientHttpRequestFactory方便从流中获取调用结果 restTem
2021-04-08 11:31:07 1475
原创 git基本的命令使用以及如何将本地项目上传到网络仓库
1.创建一个测试用的空项目2.创建本地仓库项目根目录下使用命令:git init3.创建一个远程仓库 如github,gitlab,gitee 与本地建立连接与远程仓库建立连接 git remote add 连接名称 远程仓库地址 e.g.git remote add origin https://gitee.com/wrh1997/test.git4.建立成功后就可以...
2019-09-16 16:05:16 193
原创 springboot 引入第三方jar包中过滤器配置
在SSM框架中bean的配置是放在xml中的,springboot项目通过@bean在config配置类中将过滤器注入进去。代码如下 @Bean public FilterRegistrationBean cas20ProxyReceivingTicketValidationFilter() { FilterRegistrationBean filterRegi...
2019-06-21 09:54:36 5166 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人