搜索:http

利用fastJson保证数据字段顺序做api数据签名加密

原创 2020-01-08 17:28 阅读(1663)次
我们在开发api接口时,尤其是开放给第三方使用的接口,通常会对接口参数做签名加密校验。我看了下大部分人都只是把url上的参数放到TreeMap中做加密:import org.apache.commons.codec.digest.DigestUtils; import java.io.UnsupportedEncodingException; import java.util.Map; import java.util.TreeMap; /** * @Author: rongrong * @Date: 2018/4/23 * @Description: */ publ...

Blocked a frame with origin http://localhost:8070 from accessing a cross-origin frame

原创 2019-06-25 10:01 阅读(9707)次
在使用Ueditor编辑器做上传服务时,因为上传服务图片的服务器与页面的服务不是同一个,涉及跨域问题,我在服务端已经设置好支持跨域的情况下,在上传时报了如下错误:Blocked a frame with origin "http://localhost:8070" from accessing a cross-origin frame不过Ueditor并没有把这个错误打在控制台上,是我调试代码发现他try catch掉了。如下图:然后上面代码还显示了Ueditor使用了表单提交上传的文件,我百度了一下发现现在Ueditor表单上传并不支持跨域。实际上上传是成功了,只是页面拿...

solr搜索报错:Error from server at http://127.0.0.1:8983/solr/索引名: undefined field text

原创 2018-01-13 17:10 阅读(4742)次
今天想把ClassInstance博客的列表查询改成solr搜索,在把solr查询代码加入到我工程中后,测试搜索功能,报错了:org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:8983/solr/mybook_article: undefined field text at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.j...