同源策略的解决方案 1.什么是XSS攻击,什么是CSRF,什么是CORS # 什么是XSS攻击 跨站脚本攻击分为两种方式:反射型攻击(比如,一些含有恶意脚本的URL),持久型攻击(将恶意脚本提交到被攻击网站的数据库中) # 什么是CSRF攻击 跨站请求伪造攻击:顾明思义,是攻击者通过跨站请求,以被攻 ...
分类:
其他好文 时间:
2020-07-19 16:18:27
阅读次数:
76
官网:https://docs.spring.io/spring/docs/5.2.7.RELEASE/spring-framework-reference/core.html#beans-annotation-config 1、导入约束 2、配置注解支持 <?xml version="1.0" e ...
分类:
编程语言 时间:
2020-07-19 00:44:39
阅读次数:
89
一、环境 1、导入包 maven 2、xml配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3. ...
分类:
编程语言 时间:
2020-07-19 00:32:25
阅读次数:
87
一.代码+注解 import os from PIL import Image import requests import io def save_img(): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) Appl ...
分类:
编程语言 时间:
2020-07-18 19:54:15
阅读次数:
82
redis序列化/** * redis相关配置 */ @Configuration //开启注解缓存 @EnableCaching public class RedisConfig{ /** * redis序列化配置 * @param connectionFactory jedis连接工厂 * @r ...
分类:
其他好文 时间:
2020-07-18 15:42:47
阅读次数:
56
自定义注解动态拼接查询条件 QueryWapper自定义注解 import com.supconit.its.generator.enums.QueryWapperEnum; import org.springframework.stereotype.Indexed; import java.lan ...
分类:
其他好文 时间:
2020-07-18 11:18:43
阅读次数:
105
获取泛型信息 反射操作泛型 代码练习 import com.exception.demo01.Test; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; import java.lang.ref ...
分类:
其他好文 时间:
2020-07-18 00:52:49
阅读次数:
68
有时候我们需要获取某一变量的类型时有哪些方法? 使用反射的方法: 变量名.getClass().getSimpleName()来判断。 使用 instanceof 来判断:变量名 instanceof 类型来判断。 1.使用反射的方法来判断 使用 instanceof 来判断 ...
分类:
编程语言 时间:
2020-07-18 00:47:27
阅读次数:
150
反射操作注解获得注解信息 练习:ORM 代码练习 import java.lang.annotation.*; import java.lang.reflect.Field; //练习反射操作注解 public class Test12 { public static void main(Strin ...
分类:
其他好文 时间:
2020-07-18 00:40:31
阅读次数:
78
[WebMethod] public string index(string Action,string Message) { try { // 1. 使用 WebClient 下载 WSDL 信息。 WebClient web = new WebClient(); Stream stream = ...
分类:
Web程序 时间:
2020-07-17 19:39:38
阅读次数:
65