System.out.println("判断是否存在:"+f.exists()); //是否是文件夹 System.out.println("判断是否是文件夹:"+f.isDirectory()); //是否是文件(非文件夹) System.out.println("判断是否是文件:"+f.isFi ...
分类:
其他好文 时间:
2020-03-09 22:25:20
阅读次数:
70
权限标志建议使用部使用大写字母,以下为遇到的坑 1.以下3种权限标志里有“paly”,调用接口时一直报无权限异常,没有"play"则正常调用,@RequiresPermissions("sys:play:update") @RequiresPermissions("sys:player:update ...
分类:
其他好文 时间:
2020-03-09 21:12:08
阅读次数:
85
Winter 2020FIFA: A Complete Player Dataset18k+ Latest FIFA Players, with ~80 Attributes Extracted from FIFAdatabaseeZvh,kFIFA: The Fédération Internat ...
分类:
其他好文 时间:
2020-03-08 20:09:32
阅读次数:
89
mysql8忘记了root密码,需要修改 步奏: 1. 从/etc/my.cnf 配置文件中加入skip-grant-table后正常登陆,把 localhost和user=root 的 authentication_string设置为空字符串 # systemctl restart mysqld ...
分类:
数据库 时间:
2020-03-08 19:54:24
阅读次数:
85
前言:在使用order by时,经常出现Using filesort,因此对于此类sql语句需尽力优化,使其尽量使用Using index。 0.准备 #1.创建test表。 drop table if exists test; create table test( id int primary k ...
分类:
数据库 时间:
2020-03-08 15:42:27
阅读次数:
64
前言:该篇随笔通过一些案例,对索引相关的面试题进行分析。 0.准备 #1.创建test表(测试表)。 drop table if exists test; create table test( id int primary key auto_increment, c1 varchar(10), c2 ...
分类:
数据库 时间:
2020-03-08 15:40:47
阅读次数:
99
先来建表语句: SET FOREIGN_KEY_CHECKS=0; -- -- Table structure for t_user -- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user` ( `userId` bigint(20) NOT N ...
分类:
数据库 时间:
2020-03-07 09:21:49
阅读次数:
124
1、官网链接参考: https://shardingsphere.apache.org/document/current/cn/quick-start/sharding-jdbc-quick-start/ 感谢 ShardingSphere 团队! 2、首先建立测试的数据库表: (1)表结构如下: ...
分类:
数据库 时间:
2020-03-07 00:18:29
阅读次数:
159
Natas25: 打开页面,是一段引文以及可以选择语言的下拉list。查看源码,发现关键代码: function setLanguage(){ //选择语言 /* language setup */ if(array_key_exists("lang",$_REQUEST)) //如果请求提交的参数 ...
分类:
其他好文 时间:
2020-03-07 00:16:54
阅读次数:
80
oracle中的exists 和not exists 用法详解 有两个简单例子,以说明 “exists”和“in”的效率问题 1) select * from T1 where exists(select 1 from T2 where T1.a=T2.a) ; T1数据量小而T2数据量非常大时,T ...
分类:
其他好文 时间:
2020-03-07 00:08:41
阅读次数:
55