摘要: 1 /** 2 * 获取今天开始时间 3 */ 4 private Long getStartTime() { 5 Calendar todayStart = Calendar.getInstance(); 6 todayStart.set(Calendar.HOUR, 0); 7 todaySta... 阅读全文
posted @ 2019-07-18 15:51 骏杰 阅读(14488) 评论(3) 推荐(0) 编辑
摘要: 在微信公众号的后台配置-业务域名; 亲测可行! 阅读全文
posted @ 2019-07-17 10:52 骏杰 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 是我在Mabits中错误的使用了非空判断; 只有字符串才能用 "" != date; Date类型只用判断 null != date 就好了; 阅读全文
posted @ 2019-07-17 10:47 骏杰 阅读(3240) 评论(0) 推荐(0) 编辑
摘要: // Endpoint以杭州为例,其它Region请按实际情况填写。 String endpoint = "http://oss-cn-hangzhou.aliyuncs.com"; //可以在阿里云获取 String accessKeyId = ""; String accessKeySecret = ""; // 创建OSSClient实例。 OSSClient ossClient =... 阅读全文
posted @ 2018-11-16 17:35 骏杰 阅读(840) 评论(0) 推荐(0) 编辑
摘要: ps:要注意向后台传base64字符串时,要去掉 data:image/jpeg;base64, 前缀 阅读全文
posted @ 2018-11-16 17:30 骏杰 阅读(11284) 评论(0) 推荐(0) 编辑
摘要: nginx出现 “414 request-uri too large” nginx出现了“414 request-uri too large”错误。 出现这种问题可以按照如下解决: 在nginx的nginx.conf增加或修改如下参数的: 参考文章:http://www.nginx.cn/913.h 阅读全文
posted @ 2018-11-16 17:24 骏杰 阅读(3810) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * list分页展示 3 */ 4 public List getListPage(int page, int pageSize, List list) { 5 if (list == null || list.size() == 0) { 6 throw new ServiceExcepti... 阅读全文
posted @ 2018-11-07 13:50 骏杰 阅读(4267) 评论(0) 推荐(0) 编辑
摘要: SELECT 字段名, count(*) AS 列别名 FROM 表名 GROUP BY 字段名 阅读全文
posted @ 2018-11-07 12:00 骏杰 阅读(6976) 评论(0) 推荐(0) 编辑
摘要: 1 List str = new ArrayList(); 2 str.add("a"); 3 str.add("a"); 4 str.add("b"); 5 6 Map map = new HashMap(); 7 8 for(String obj: str){ 9 ... 阅读全文
posted @ 2018-11-07 11:04 骏杰 阅读(1769) 评论(0) 推荐(0) 编辑