第一点:Java代码实现文件上传 FormFile file = manform.getFile(); String newfileName = null; String newpathname = null; String fileAddre = "/numUp"; try { InputStre ...
分类:
Web程序 时间:
2020-12-19 12:05:16
阅读次数:
3
使用event-source-polyfill 前提: 严格的来说,HTTP协议无法做到服务端主动推送消息,但是,有一种方法,是服务器向客户端声明,接下来要发送的是流信息(streaming)。也就是说,发送的不是一次性的数据包,而是一个数据流,会连续不断的发送过来,这时,客户端不会关闭链接,会一直 ...
分类:
其他好文 时间:
2020-12-19 11:37:37
阅读次数:
1
TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')] , 'APP_DIRS': True, 'OPTIO ...
分类:
其他好文 时间:
2020-12-18 13:20:11
阅读次数:
4
连接hdfs 根据hdfs的版本引用相关的hdfs依赖 <!-- https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client --> <dependency> <groupId>org.apache.hadoop</group ...
1. 下载与安装 https://zhuanlan.zhihu.com/p/76613134 https://sourceforge.net/projects/mingw-w64/ 2. VS Code配置 ...
分类:
其他好文 时间:
2020-12-18 12:13:22
阅读次数:
3
关注日志路径 C:/Windows/System32/winevt/Logs/ C:/WINDOWS/system32/config Dumpel 本地或远程导出日志 dumpel -f file [-s \\server] [-l log [-m source]] [-e n1 n2 n3..] ...
以ext4方式挂载,请参考https://www.cnblogs.com/nanwangbei/p/14101407.html 以下操作均在root用户下进行: 1、查看现有分区大小: df –h 2、查看磁盘空间大小: fdisk -l 3、检查物理磁盘: lsblk比如新多出来的磁盘 vdb . ...
分类:
其他好文 时间:
2020-12-17 13:13:49
阅读次数:
8
例如,可以将产品表与产品类别表相联接,得到产品名称和与其相对应的类别名称 db.Products .Join ( db.Categories, p => p.CategoryID, c => c.CategoryID, (p, c) => new {p,c.CategoryName} ) .Wher ...
分类:
数据库 时间:
2020-12-17 12:56:16
阅读次数:
7
解决安装 pip3时 错误: Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)' in the drive '/cdrom/' and p ...
分类:
其他好文 时间:
2020-12-17 12:35:15
阅读次数:
2
cc.Class({ extends: cc.Component, properties: { //speed accl:0, player:{ default:null, type:cc.Node }//}, }, // LIFE-CYCLE CALLBACKS: SetInputControl: ...
分类:
移动开发 时间:
2020-12-17 12:30:51
阅读次数:
3