1.WebConfig中: <httpProtocol></httpProtocol>中加 <customHeaders> <!--<add name="Access-Control-Allow-Origin" value="http://oa.test.facehm.com" />--> <add ...
分类:
其他好文 时间:
2019-03-29 11:42:43
阅读次数:
1434
一、介绍星舟平台 1、星舟简介 2、网关kong的介绍 3、客户端 1)、服务注册:Eureka 2)、客户端负载均衡:Ribbon 4、服务器端 1)、服务注册:Marathon+Marathon-LB、HAProxy+Confd+Etcd 2)、服务端负载均衡:HAProxy 5、pin... ...
分类:
编程语言 时间:
2019-03-27 19:47:22
阅读次数:
254
错误:The origin server did not find a current representation for the target resource or is not willing to。。。 我的原因是没有写全路径:用eclipse跑的只有项目名而没有具体路径 如: http: ...
分类:
Web程序 时间:
2019-03-27 19:47:08
阅读次数:
183
CORS 定义 CORS是一个W3C标准,全称是"跨域资源共享"(Cross-origin resource sharing),它允许浏览器向跨源服务器,发出XMLHttpRequest请求,从而克服了AJAX只能同源使用的限制。提供了 Web 服务从不同域传来沙盒脚本的方法,以避开浏览器的同源策略 ...
分类:
其他好文 时间:
2019-03-27 11:22:08
阅读次数:
231
1、在发射射线的位置创建一个空物体用于存储发射点的位置信息。 2、制作射线,为发射射线物体添加LineRenderer组件 制作Material材质并把其类型改为Particles/Addictive模式并为其加颜色把纹理放到LineRenderer的Material中,修改LineRenderer ...
分类:
编程语言 时间:
2019-03-26 22:48:19
阅读次数:
337
近期SpringBoot项目部署遇到跨域问题,记录一下解决历程。 1. 要严格限制,允许哪些域名访问,在application.properties文件里添加配置,配置名可以自己起: cors.allowed.origin=http://10.xx.253.xx:8081,http://localh ...
分类:
编程语言 时间:
2019-03-26 21:15:21
阅读次数:
266
1、拓扑图 2、配置过程 将各个端口的IP地址配好 在全局模式下启动RIP 在各个路由器上进入所连接的端口启用rip协议 在R3上宣告默认路由 ipv6 rip 1 default-informationoriginate R4上配置静态路由 ipv6 route ::/0 2001:db8:fee ...
分类:
其他好文 时间:
2019-03-26 19:38:09
阅读次数:
192
$.ajaxSetup({ xhrFields:{ withCredentials:true, } }); header("Access-Control-Allow-Origin:http://localhost:9999");//使用cookie时此处不可用通配符 header("A... ...
分类:
其他好文 时间:
2019-03-26 18:13:42
阅读次数:
173
git clone 'http://github/网址' //克隆网站 git add . //添加文件 git commit -m '提交文件备注' git push -u origin master (注:此操作目的是把本地仓库push到github上面,此步骤需要你输入帐号和密码) ...
分类:
其他好文 时间:
2019-03-26 16:48:49
阅读次数:
132
下拉仓库 git clone ""建立本地分支 git checkout -b "分支名字" 修改代码以后切换到主分支 git checkout master更新代码 git pull切换到本地分支 git checkout "分支名字"合并分支 git merge master 提交代码git a ...
分类:
其他好文 时间:
2019-03-26 13:33:39
阅读次数:
163