摘要:
public static Integer counts(List<Integer> list){ // Inter数组// int[] x = {1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1}; // 之前的整数 int beforeNumbe 阅读全文
摘要:
server { listen 80; server_name www.klzhibo.cn; set $mobile_rewrite do_not_perform; if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bad 阅读全文
摘要:
利用java8新特性,可以用简洁高效的代码来实现一些数据处理。定义1个Apple对象: public class Apple { private Integer id; private String name; private BigDecimal money; private Integer nu 阅读全文
摘要:
首先修改配置文件 vi /etc/ssh/sshd_config 找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 22 Port 18522 然后保存退出 6.5版本:/etc/init.d/sshd restart 7.4版本:systemctl restart ss 阅读全文
摘要:
买的云服务器发现系统盘空间不足,但是买的时候是80GB,可用只有8GB 问了客服说硬盘没有挂载上 于是有了下面的操作 [root@localhost ~]# lsblk -fNAME FSTYPE LABEL UUID MOUNTPOINTfd0 sda ├─sda1 xfs 34f79a00-9e 阅读全文
摘要:
server { listen 80 default_server; listen [::]:80 default_server; server_name localhsot; client_max_body_size 10M; root /usr/share/nginx/html; include 阅读全文
摘要:
Page<AoaQuestionHeader> findAll(Specification<AoaQuestionHeader> spec, Pageable pageable); List<AoaQuestionHeader> headerPage = questionHeaderDao.find 阅读全文
摘要:
什么是跨域(CORS) 跨域(CORS)是指不同域名之间相互访问。跨域,指的是浏览器不能执行其他网站的脚本,它是由浏览器的同源策略所造成的,是浏览器对于JavaScript所定义的安全限制策略。 也就是如果在A网站中,我们希望使用Ajax来获得B网站中的特定内容,如果A网站与B网站不在同一个域中,那 阅读全文