package com.utils.file; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; ...
分类:
其他好文 时间:
2020-06-24 17:58:07
阅读次数:
54
1、问题现象 Access to XMLHttpRequest at 'http://yyyy' from origin 'http://zzzz' has been blocked by CORS policy: Request header field xxxx is not allowed b ...
分类:
其他好文 时间:
2020-06-24 17:47:18
阅读次数:
66
1.遍历Collection的两种方式:① 使用迭代器Iterator ② foreach循环(或增强for循环)2.java.utils包下定义的迭代器接口:Iterator2.1说明:Iterator对象称为迭代器(设计模式的一种),主要用于遍历 Collection 集合中的元素。 GOF给迭 ...
分类:
编程语言 时间:
2020-06-23 21:18:02
阅读次数:
63
写在前面 在《【Spring注解驱动开发】如何使用@Bean注解指定初始化和销毁的方法?看这一篇就够了!!》一文中,我们讲述了如何使用@Bean注解来指定bean初始化和销毁的方法。具体的用法就是在@Bean注解中使用init-method属性和destroy-method属性来指定初始化方法和销毁 ...
分类:
编程语言 时间:
2020-06-22 01:18:37
阅读次数:
55
Django rest framework源码分析(3) 节流 添加节流 自定义节流的方法 限制60s内只能访问3次 (1)API文件夹下面新建throttle.py,代码如下: # utils/throttle.py from rest_framework.throttling import Ba ...
分类:
其他好文 时间:
2020-06-21 20:12:57
阅读次数:
44
dnf install -y yum-utils dnf config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo dnf install docker-ce docker-ce-cli ...
分类:
其他好文 时间:
2020-06-21 13:26:10
阅读次数:
77
package com.wlb.jp.config; import com.wlb.jp.utils.ReturnType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.uti ...
分类:
编程语言 时间:
2020-06-21 10:07:39
阅读次数:
82
package cc.ccoder.mail.utils; import java.util.UUID; /** * * @TODO: 生成随机字符串的工具类 uuid */ public class UUIDUtils { public static String getUUID(){ retur ...
分类:
其他好文 时间:
2020-06-21 09:53:01
阅读次数:
92
package com.hy.fddsvr.utils; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.sql.Timestamp; imp ...
分类:
编程语言 时间:
2020-06-20 19:43:12
阅读次数:
109
package com.hy.fddsvr.utils; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Field; import java.sql.*; import java.ut ...
分类:
数据库 时间:
2020-06-20 18:45:37
阅读次数:
51