初始化SQL DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `password` varchar(32 ...
分类:
编程语言 时间:
2020-01-15 15:32:34
阅读次数:
92
java - How to check if a variable exists in a FreeMarker template? - Stack Overflowhttps://stackoverflow.com/questions/306732/how-to-check-if-a-variab ...
分类:
其他好文 时间:
2020-01-15 14:15:17
阅读次数:
78
1.底下这种in查询,Hibernate中分页查询,分页出现某些数据重复出现 and ap.dep_id in (select id from t_department connect by prior id = parent_id start with id in ('8b8cf024607293 ...
分类:
数据库 时间:
2020-01-15 10:20:17
阅读次数:
101
反射型xss low级别 代码如下: 1 <?php 2 3 header ("X-XSS-Protection: 0"); 4 5 // Is there any input? 6 if( array_key_exists( "name", $_GET ) && $_GET[ 'name' ] ! ...
分类:
其他好文 时间:
2020-01-14 20:33:07
阅读次数:
73
最近用vue cli3.0全局安装的时候,一直报错 如下图: 其实他的下面一句已经提示我们了(Remove the existing file and try again, or run npm),删除现有的文件并且重试 直接前往/usr/local/bin/vue 找到这个vue文件然后删除,在重 ...
分类:
其他好文 时间:
2020-01-13 16:28:24
阅读次数:
1006
java两台服务器之间,大文件上传(续传),采用了Socket通信机制以及JavaIO流两个技术点,具体思路如下: 实现思路: 1、服:利用ServerSocket搭建服务器,开启相应端口,进行长连接操作 2、服:使用ServerSocket.accept()方法进行阻塞,接收客户端请求 3、服:每 ...
分类:
Web程序 时间:
2020-01-13 10:47:42
阅读次数:
103
单表 新建表 CREATE TABLE IF NOT EXISTS article( id INT(10) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, author_id INT(10) UNSIGNED NOT NULL, category_id I ...
分类:
数据库 时间:
2020-01-12 15:11:49
阅读次数:
95
平时的学习工作少不了保存自己的Code到代码库,这里必须要使用到Git与GitHub。 1. 关于Git的安装 下载Git:下载地址:https://git-scm.com/downloads 。根据不同操作系统选择不同的版本,我用的是Windows操作系统,选择与计算机系统匹配的版本即可,如64- ...
分类:
Web程序 时间:
2020-01-12 15:11:14
阅读次数:
103
文章次数统计是比较常用的功能,下面通过修改代码实现统计。 控制台 / 外观 / 编辑当前外观 / 在 functions.php 加入以下代码 代码已中加入了cookie验证,让文章浏览次数更具有真实性 阅读次数记录在 db._contents.views表中。 function Postviews ...
分类:
其他好文 时间:
2020-01-12 13:34:22
阅读次数:
104
Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfy ...
分类:
其他好文 时间:
2020-01-12 11:53:41
阅读次数:
79