2018年6月29日
摘要: SHOW VARIABLES LIKE '%lower_case_table_names%';SELECT VERSION(); 在项目中,quartz定时任务中,表名都是大写,但是数据库中建立的表名都是小写,导致springboot启动的时候报表不存在. 是mysql如上配置影响,需要忽略大小写. 阅读全文
posted @ 2018-06-29 00:07 jhuangsjtu 阅读(624) 评论(0) 推荐(0) 编辑
摘要: git rm -r --cached .//清空缓存git add .//重新提交git commit -am "update .gitignore"git push origin master 重新提交一次就可以了. 阅读全文
posted @ 2018-06-29 00:01 jhuangsjtu 阅读(427) 评论(0) 推荐(0) 编辑
  2018年6月28日
摘要: 1.NPE 空指针报错 order.getCancelWrongdoer存在nullpointerexception情况 2.this 是当前对象,如果子类调用父类的方法,父类中使用this,调用同名的方法,是调用子类的方法,如果子类中是执行的是父类的方法,需要使用super 阅读全文
posted @ 2018-06-28 23:59 jhuangsjtu 阅读(138) 评论(0) 推荐(0) 编辑
  2018年4月2日
摘要: //@RunWith(SpringRunner.class) //@SpringBootTest public class Demo2ApplicationTests { @Test public void contextLoads() { System.out.println("test,test"); } @Test ... 阅读全文
posted @ 2018-04-02 08:24 jhuangsjtu 阅读(177) 评论(0) 推荐(0) 编辑
  2018年1月10日
摘要: 1.微信支付文档 https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=9_16&index=9 解密方式 解密方式 解密步骤如下: (1)对加密串A做base64解码,得到加密串B (2)对商户key做md5,得到32位小写key* ( key 阅读全文
posted @ 2018-01-10 23:04 jhuangsjtu 阅读(13969) 评论(3) 推荐(3) 编辑
  2017年12月10日
摘要: ##查询30天以内的数据 SELECT *,(TO_DAYS(NOW()) - TO_DAYS(create_time) ) AS d FROM `days_user` WHERE TO_DAYS(NOW()) - TO_DAYS(create_time) <= 30; ##方法2 SELECT *,DATE_SUB(CURDATE(), INTERVAL 30 DAY),DATE(crea... 阅读全文
posted @ 2017-12-10 23:28 jhuangsjtu 阅读(3538) 评论(0) 推荐(0) 编辑
摘要: 1.maven配置 <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson --> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactI 阅读全文
posted @ 2017-12-10 23:14 jhuangsjtu 阅读(19667) 评论(0) 推荐(0) 编辑
摘要: 非阻塞、高并发连接:数据复制时,磁盘I/O的第一阶段是非阻塞的。官方测试能支持5万并发连接,实际生产中能跑2~3万并发连接数(得益于Nginx采用了最新的epoll事件处理模型(消息队列) 采用Master/worker多进程工作模式 阅读全文
posted @ 2017-12-10 22:36 jhuangsjtu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: sqlserver版本为2012,使用的jar包sqljdbc4-4.0.jar c3p0-0.9.1.2.jar 找jar及pom配置: http://mvnrepository.com/ maven pom.xml配置 applicationContext.xml配置 junit测试类 阅读全文
posted @ 2017-12-10 14:34 jhuangsjtu 阅读(4528) 评论(0) 推荐(0) 编辑
  2017年9月27日
摘要: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --no-sandbox 添加--no-sandbox 如图: 即可解决问题了。 网上说:修改C:\Users\jhuang.sjtu\AppData\Local\Google 阅读全文
posted @ 2017-09-27 22:37 jhuangsjtu 阅读(5044) 评论(1) 推荐(1) 编辑