上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: 在window电脑上写的脚本放在linux上面执行一直报错时,如下面 syntax error near unexpected token `fi' 可以进行下面的操作: 用vim打开文件,在命令行模式下输入 :set ff如果显示fileformat=dos现在通过命令:set ff=unix设置 阅读全文
posted @ 2022-03-02 15:35 逝年的我们 阅读(592) 评论(0) 推荐(0)
摘要: Set是无序的如何取到第一个元素? 1、迭代 if(!set.isEmpty()){ System.out.println(set.iterator().next()); } 2、转换成list后通过索引取 List list = new ArrayList(set); System.out.pri 阅读全文
posted @ 2022-02-10 13:41 逝年的我们 阅读(980) 评论(0) 推荐(0)
摘要: 在Java的Set体系中,根据实现方式不同主要分为两大类。HashSet和TreeSet。 1、TreeSet 是二叉树实现的,Treeset中的数据是自动排好序的,不允许放入null值2、HashSet 是哈希表实现的,HashSet中的数据是无序的,可以放入null,但只能放入一个null,两者 阅读全文
posted @ 2022-02-10 11:16 逝年的我们 阅读(1302) 评论(0) 推荐(0)
摘要: 因为group by后取的一条数据默认是按主键id排序后的第一条,而且mysql查询语句是先执行group by再执行order by的。所以无法直接取 group by 后 创建时间最新的数据。 阅读全文
posted @ 2021-12-17 20:09 逝年的我们 阅读(111) 评论(0) 推荐(0)
摘要: title : { show:true,//显示策略,默认值true,可选为:true(显示) | false(隐藏) text: '主标题',//主标题文本,'\n'指定换行 link:'',//主标题文本超链接,默认值true target: null,//指定窗口打开主标题超链接,支持'sel 阅读全文
posted @ 2021-11-24 11:25 逝年的我们 阅读(528) 评论(0) 推荐(0)
摘要: 在CentOS 7上实现密码复杂度策略设置,主要是使用PAM pwquality模块完成 1、备份原有配置文件 cp /etc/pam.d/system-auth /etc/pam.d/system-auth.bak 2、设置复杂度策略 vim /etc/pam.d/system-auth 找到包含 阅读全文
posted @ 2021-11-16 11:24 逝年的我们 阅读(2610) 评论(0) 推荐(0)
摘要: nginx -redirect隐藏http信息中location部分信息server { listen 80; server_name www.boke.com; location / { proxy_pass http://192.168.3.3:8080; proxy_redirect off; 阅读全文
posted @ 2021-11-15 18:03 逝年的我们 阅读(506) 评论(0) 推荐(0)
摘要: 1、 先查看密码过期时间: [root@01 ~]# chage -l testuser Last password change : Jul 10, 2017 Password expires : Oct 08, 2018 Password inactive : never Account exp 阅读全文
posted @ 2021-10-28 10:56 逝年的我们 阅读(2160) 评论(0) 推荐(0)
摘要: win + R 组合键输入 osk成功 阅读全文
posted @ 2021-07-31 10:44 逝年的我们 阅读(113) 评论(0) 推荐(0)
摘要: 一、添加pom架包 <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>5.4.1.Final</version> </dependency> 二、在请 阅读全文
posted @ 2021-05-26 18:04 逝年的我们 阅读(120) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页