SpringBoot跨域配置 我们的后端使用Spring Boot。Spring Boot跨域非常简单,只需书写以下代码即可。 Nginx跨域配置 某天,我们将Spring Boot应用用Nginx反向代理。而前端跨域请求的需求不减,于是乎。 Nginx跨域也比较简单,只需添加以下配置即可。 其中: ...
分类:
其他好文 时间:
2019-07-22 18:22:08
阅读次数:
86
CORS全称Cross-Origin Resource Sharing, 跨域资源共享,是HTML5的一个新特性,已被所有浏览器支持,不同于古老的jsonp只能get请求。 检测方式: 1.curl访问网站 检查返回包的 Access-Control-Allow-Origin 字段是否为https: ...
分类:
其他好文 时间:
2019-07-21 18:46:32
阅读次数:
468
Cross-Site Scripting(XSS) 1. Using the tool - netdiscover to find the IP of target server. 2.Browser the website http://10.0.0.21 through Firefox. 3. ...
分类:
移动开发 时间:
2019-07-18 23:57:37
阅读次数:
299
csrf: Cross Site Request Forgery, 跨站请求伪造 什么是 CSRF CSRF, Cross Site Request Forgery, 跨站点请求伪造。举例来讲,某个恶意的网站上有一个指向你的网站的链接,如果某个用户已经登录到你的网站上了,那么当这个用户点击这个恶意网 ...
分类:
其他好文 时间:
2019-07-18 19:43:06
阅读次数:
74
一、Importing all the libraries import pandas as pdimport numpy as npfrom matplotlib import pyplot as plt from sklearn.model_selection import cross_val_ ...
分类:
其他好文 时间:
2019-07-09 00:35:06
阅读次数:
199
softmax求导 softmax层的输出为 其中,表示第L层第j个神经元的输入,表示第L层第j个神经元的输出,e表示自然常数。 现在求对的导数, 如果j=i, 1 如果ji, 2 cross-entropy求导 loss function为 对softmax层的输入求导,如下 label smoo ...
分类:
其他好文 时间:
2019-07-08 13:56:22
阅读次数:
110
cross join:自然连接。主要用于产生笛卡尔积。 2.natural join:自然连接。这种情况下,数据库会自动找到一个字段来消除笛卡尔积。一般来说,数据库会找那些通过外键约束关联的字段。因此,有较大的局限性。 ...
分类:
数据库 时间:
2019-07-08 12:01:29
阅读次数:
144
Computing the cross correlation function is useful for finding the time delay offset between two time series. Python has the numpy.correlate function. ...
分类:
其他好文 时间:
2019-07-07 16:03:46
阅读次数:
148
1:excel的单元格值设置为可选值 选中某一列>data>data validation>list>填入被选的值,用英文逗号分开。 ...
分类:
其他好文 时间:
2019-07-07 11:09:03
阅读次数:
373
先看上面的代码,解释一下意思,看你能认识多少(后面有注释): 1,什么是主轴,什么是交叉轴? 下面就给你解释一下上面的问题,咱们先看图: 1,水平主轴就是图中的(main axis)线标出的 2,垂直交叉轴就是(cross axis)线标出的 那其他的又是什么? 看下面的全部解释: 容器默认存在两根 ...
分类:
Web程序 时间:
2019-07-06 00:01:16
阅读次数:
141