08 2017 档案

spring rememberme safari 不起做作用 出现Invalid remember-me token (Series/token) mismatch. Implies previous cookie theft attack
摘要:Just so that we are on the same page I will first take a minute to explain how I understand this persistent token mechanism to work.Starting from scratch (no entries in the persistent_logins table):On... 阅读全文

posted @ 2017-08-30 19:16 丛林摄影狮 阅读(1161) 评论(0) 推荐(0)

spring security rememberme 配置好后不起作用
摘要:如果发现System.out.println(this.getClass() + ": login:" + SecurityContextHolder.getContext().getAuthentication().getName()); System.out.println(this.getClass() + ": login:" + SecurityContextHolder... 阅读全文

posted @ 2017-08-29 20:19 丛林摄影狮 阅读(654) 评论(0) 推荐(0)

centos7.2 启动卡在部署 manager 上 -Djava.security.egd=file:/dev/./urandom
摘要:将$JAVA_HOME/jre/lib/security/Java.security内,将securerandom.source的内容改为file:/dev/./urandom即可 Linux或者部分unix系统提供随机数设备是/dev/random 和/dev/urandom ,两个有区别,ura 阅读全文

posted @ 2017-08-26 20:27 丛林摄影狮 阅读(3316) 评论(0) 推荐(0)

Thymeleaf &报错
摘要:用& 阅读全文

posted @ 2017-08-24 16:58 丛林摄影狮 阅读(256) 评论(0) 推荐(0)

thymeleaf th:each 获取索引
摘要:userStat是状态变量,有 index,count,size,current,even,odd,first,last等属性,如果没有显示设置状态变量,thymeleaf会默 认给个“变量名+Stat"的状态变量。 阅读全文

posted @ 2017-08-22 12:01 丛林摄影狮 阅读(1365) 评论(0) 推荐(0)

mybatis rowBounds 不起作用
摘要:sqlSession.selectList("xxx",null,rowBounds); 阅读全文

posted @ 2017-08-21 20:26 丛林摄影狮 阅读(459) 评论(0) 推荐(0)

java 求今天0点的时间
摘要:long current=1503013579000l; long zero=(current+TimeZone.getDefault().getRawOffset())/(1000*3600*24)*(1000*3600*24)-TimeZone.getDefault().getRawOffset();//今天零点零分零秒的毫秒数 阅读全文

posted @ 2017-08-17 19:09 丛林摄影狮 阅读(173) 评论(0) 推荐(0)

background-image: url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' f…3E%3Cpath d='M4 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E);
摘要:svg格式图片,可以通过url解码后 改变fill的值来改变颜色 阅读全文

posted @ 2017-08-16 21:04 丛林摄影狮 阅读(1635) 评论(0) 推荐(0)

Mysql 插入中文错误:Incorrect string value: '...' for column 'xx' at row 1
摘要:datasource url后面加上useUnicode=true&characterEncoding=utf-8alter table w default character set utf8; alter table w change score score varchar(50) character utf8; 阅读全文

posted @ 2017-08-16 11:11 丛林摄影狮 阅读(180) 评论(0) 推荐(0)

RedirectAttributes 实现SPRING 待参数重定向网页
摘要:RedirectAttributes 实现SPRING 待参数重定向网页 阅读全文

posted @ 2017-08-15 20:19 丛林摄影狮 阅读(119) 评论(0) 推荐(0)

Mybatis RowBounds 是逻辑分页
摘要:Mybatis RowBounds 是逻辑分页,效率较低 阅读全文

posted @ 2017-08-15 19:19 丛林摄影狮 阅读(250) 评论(0) 推荐(0)

JS JAVASCRIPT 判断两个日期相隔多少天
摘要:var days = daysBetween('2016-11-01','2016-11-02');/*** 根据两个日期,判断相差天数* @param sDate1 开始日期 如:2016-11-01* @param sDate2 结束日期 如:2016-11-02* @returns {number} 返回相差天数*/function daysBetween(sDate1,sDate2){//... 阅读全文

posted @ 2017-08-07 21:34 丛林摄影狮 阅读(1174) 评论(0) 推荐(0)

js的 style.width 取不到元素的宽度值
摘要:转自 http://www.cnblogs.com/hamsterPP/p/4996402.html以前一直用jquery的.width()方法来获取一个元素的当前的宽度。不管该元素是否设置了宽度,CSS样式是内联、外联or内嵌,都可用此方式获得元素当前的宽度。今天想用原生JS想获取一个元素宽度时,写document.getElementById("id").style.width或者docume... 阅读全文

posted @ 2017-08-03 14:49 丛林摄影狮 阅读(228) 评论(0) 推荐(0)

events.js:182 throw er; // Unhandled 'error' event
摘要:browser-sync start --proxy "localhost:8080" --files "**/*.html" --reload-delay 3000 启动报events.js:182 throw er; // Unhandled 'error' event 错误,目前发现是CMD处于的目录不对,换个目录就成功了 阅读全文

posted @ 2017-08-03 08:36 丛林摄影狮 阅读(297) 评论(0) 推荐(0)

Browsersync/eclipse 结合实现网页保存后 浏览器自动刷新
摘要:1、文件保存后 需要增加延时 (Browsersync --reload-delay) browser-sync start --proxy "localhost:8080" --files "**/*.html,**/*.css,**/*.js" --reload-delay 3000 阅读全文

posted @ 2017-08-02 14:24 丛林摄影狮 阅读(190) 评论(0) 推荐(0)

sublime 改动文件后,实现 eclipse 自动刷新文件
摘要:Preference-general-workplace,勾选Refresh using native hooks or polling 阅读全文

posted @ 2017-08-02 10:45 丛林摄影狮 阅读(258) 评论(0) 推荐(0)

spring @Autowired 方法参数时 经常会遇到实参中的属性值(@Autowired 修饰)是null 不知道为什么
摘要:spring @Autowired 方法参数时 经常会遇到实参中的属性值(@Autowired 修饰)是null 不知道为什么 阅读全文

posted @ 2017-08-01 19:04 丛林摄影狮 阅读(775) 评论(0) 推荐(0)

导航