晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页

2019年12月24日

摘要: 1.取余 2.取整 注意JS中的 / 操作符如果两侧的数是整数,他也会当作浮点数进行运算,不会整除,它会保留小数 正确的取整方式需要借助parseInt()方法 3.向上取整(只要除完结果有小数,整数部分会加1,小数部分省略),一般用在分页时计算一共多少页 阅读全文

posted @ 2019-12-24 09:49 shenyixin 阅读(4408) 评论(0) 推荐(0)

2019年12月18日

摘要: 删除旧的docker yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine docker-ce -y 删除旧 阅读全文

posted @ 2019-12-18 11:37 shenyixin 阅读(297) 评论(0) 推荐(0)

2019年11月28日

摘要: 一、需求缘起 分页需求 互联网很多业务都有分页拉取数据的需求,例如: (1)微信消息过多时,拉取第N页消息 (2)京东下单过多时,拉取第N页订单 (3)浏览58同城,查看第N页帖子 这些业务场景对应的消息表,订单表,帖子表分页拉取需求有这样一些特点: (1)有一个业务主键id, 例如msg_id,  阅读全文

posted @ 2019-11-28 10:15 shenyixin 阅读(283) 评论(0) 推荐(0)

2019年11月13日

摘要: 1、查看时间时区 date 2、修改时区 timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海 3、安装ntp 联网校准时间 yum install ntp systemctl start ntpd systemctl enable ntpd ntpd 阅读全文

posted @ 2019-11-13 12:35 shenyixin 阅读(420) 评论(0) 推荐(0)

2019年10月29日

摘要: 1. MVC Controller 映射 sso 方法。 2. 重载org.apache.shiro.realm.AuthorizingRealm类的assertCredentialsMatch方法 3. 实现Shiro无状态访问,如通过传递sessionid参数即可实现会话访问 这里需要自定义Sh 阅读全文

posted @ 2019-10-29 10:27 shenyixin 阅读(13507) 评论(0) 推荐(0)

2019年8月16日

摘要: 今天,配置nginx反向代理时遇到一个问题,当设置nginx监听80端口时转发请求没有问题。但一旦设置为监听其他端口,就一直跳转不正常;如,访问欢迎页面时应该是重定向到登录页面,在这个重定向的过程中端口丢失了。 这里给出一个简短的解决方案,修改nginx的配置文件。 一、配置文件 一、配置文件 # 阅读全文

posted @ 2019-08-16 17:53 shenyixin 阅读(6250) 评论(1) 推荐(0)

2019年8月5日

摘要: 具体错误: 使用mysql创建、调用存储过程,函数以及触发器的时候会有错误符号为1418错误。 [Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and 阅读全文

posted @ 2019-08-05 19:59 shenyixin 阅读(1824) 评论(0) 推荐(1)

摘要: SELECT CONCAT('truncate TABLE ',table_schema,'.',TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES WHERE table_schema IN ('ttsf_production'); 阅读全文

posted @ 2019-08-05 13:36 shenyixin 阅读(433) 评论(0) 推荐(0)

2019年7月4日

摘要: Linux 在执行redis-server /etc/redis.conf 时默认开启的是一个前台的进程,也就是说启动的redis 就做不了其他的操作了,只有关闭redis 才能做其他的操作。非常的麻烦,所以需要让redis服务端在后台启动。 1,在家目录(或根目录,这里用的是家目录)下建立一个目录 阅读全文

posted @ 2019-07-04 10:15 shenyixin 阅读(3295) 评论(0) 推荐(0)

摘要: docker启动命令,docker重启命令,docker关闭命令 启动 systemctl start docker守护进程重启 sudo systemctl daemon-reload重启docker服务 systemctl restart docker重启docker服务 sudo servic 阅读全文

posted @ 2019-07-04 09:47 shenyixin 阅读(96475) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页