logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

RestTemplate远程调用报错:Content type ‘application/xml;charset=UTF-8‘ not supported

原因为没有指定请求头contentType,需要在代码中指定一下原代码:接口报错:Content type 'application/xml;charset=UTF-8' not supported@Autowiredprivate RestTemplate restTemplate;Map<String,Object> params = new HashMap<>();p

#spring#微服务
使用fastjson实现json字符串与各类对象的转换

对象转json字符串//参数为一个Object对象String str = JSON.toJSONString(obj)json字符串转List<T>List<MedicalInvoiceDetail> detailList = JSONArray.parseArray(p.getCheckDetail(),MedicalInvoiceDetail.class);json字

#json
git切换分支失败:error: pathspec ‘develop‘ did not match any file(s) known to git

现象使用命令切换到develop分支$ git checkout develop提示如下错误:error: pathspec 'develop' did not match any file(s) known to git解决1、先看一下git的分支情况$ git branch -a* masterremotes/origin/master2、没有发现develop分支,则需要获取全部分支git

#git
到底了