会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
文旭大人
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
11
下一页
2018年12月18日
Jfinal结合redis实现JWT拦截器的token安全验证
摘要: 拦截器: public class AuthTokenInterceptor implements Interceptor { private final String ACCESS_TOKEN = "token"; @Override pu...
阅读全文
posted @ 2018-12-18 15:49 anliex
阅读(156)
评论(0)
推荐(0)
2018年12月10日
百度地图根据百度坐标测算两者之间的距离
摘要: 这里有两个计算其实算是一种,一种是sql查询的时候计算一种是js计算 sql计算 SQRT( POW(111.2 * (p.bd_y - " + longitude + "), 2) + POW(111.2 * (" + latitude + " - p.bd...
阅读全文
posted @ 2018-12-10 09:23 anliex
阅读(151)
评论(0)
推荐(0)
2018年12月4日
java Object 转String然后再转Long
摘要: Object obj;Long lon=Long.valueOf(String.valueOf(obj))
阅读全文
posted @ 2018-12-04 19:55 anliex
阅读(15)
评论(0)
推荐(0)
微信小程序data中数组java后端接收--小程序踩过的坑
摘要: 首先在小程序端想传递一个数组给服务端 很明显这个数组的长度是3但是看文档 被坑,在java端接收到以后的不是数组了直接变为string,本来一直使用数组遍历,后来发现根本不行,解决方案 String coupons = getPara("coupons...
阅读全文
posted @ 2018-12-04 19:33 anliex
阅读(113)
评论(0)
推荐(0)
2018年11月27日
BigDecimal加减乘除
摘要: BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3...
阅读全文
posted @ 2018-11-27 11:50 anliex
阅读(8)
评论(0)
推荐(0)
2018年11月26日
微信商户转账到银行卡-java
摘要: 这个注意写在最前面是因为微信获取公钥以后的格式问题推荐 http://www.ssleye.com/web/pkcs PKCS#1转成PKCS#8 不然会一直提示公钥不正确 ------------------------------分割线------...
阅读全文
posted @ 2018-11-26 18:27 anliex
阅读(214)
评论(0)
推荐(0)
2018年11月5日
GPS转百度坐标,离线 java
摘要: 首先是找到一个可以在线传参数的api public class GpsToBaidu { public static JSONObject GpsToBaiDu(String latitude, String longitude) { //...
阅读全文
posted @ 2018-11-05 19:10 anliex
阅读(111)
评论(0)
推荐(0)
2018年10月30日
微信退款及退款通知结果 java
摘要: 下面的评论有很多想看我的postSSL的源码,这里奉上 public static String postSSL(String url, String data, String certPath, String certPass) { String DEFA...
阅读全文
posted @ 2018-10-30 14:46 anliex
阅读(102)
评论(0)
推荐(0)
2018年10月8日
微信小程序---生成二维码工具weapp-qrcode.js的使用
摘要: 在小程序中引入weapp-qrcode.js,然后在需要转化的页面引入这个js, var QRCode=require("../../utils/weapp-qrcode.js") 页面wxml 开始 var qrcode = new QRCode('c...
阅读全文
posted @ 2018-10-08 14:34 anliex
阅读(485)
评论(0)
推荐(0)
2018年9月17日
报表sql(自己打的笔记没有任何逻辑,仅仅为了打笔记而已没有任何参考性)
摘要: SELECT id,seller_id,`name`,price,stock,sales,image,is_marketable FROM t_product where (seller_id =61 and active =1 and is_marke...
阅读全文
posted @ 2018-09-17 16:46 anliex
阅读(10)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
11
下一页
公告