- 博客(8)
- 收藏
- 关注
原创 本地nexus 服务启动失败解决办法
今天因工作需要自己搭建私服所以首先下载了nexus安装安装之后启动说 The nexus service was launched, but failed to start.在网上查了下,说看日志\nexus-professional-2.7.0-06-bundle\nexus-professional-2.7.0-06\logs说Type javax.xml.bind.JAX...
2019-04-18 14:09:10
1941
原创 简单看懂HashMap1.8源码
HashMap1.8跟之前相比增加了红黑树的数据结构。Hashmap1.8的数据结构为数组+链表+红黑树。数据结构: 源码:一点一点分析:先看HashMap源码中定义的几个重要属性:先不管他们是干嘛的!只看注释的意义! /** * The default initial capacity - MUST be a power of two....
2018-11-08 15:43:20
241
原创 安卓/苹果显示XX时间前的JS兼容
最近公司做了一款微信公众号摇奖,滚动中奖名单上要显示中奖时间距现在多久。//时间var minute = 1000 * 60;var hour = minute * 60;var day = hour * 24;var halfamonth = day * 15;var month = day * 30;function getDateDiff(date
2017-04-27 16:22:35
1715
原创 HSSF导出excel
private static final String WINNERS_EXCEL_NAME = "WinnersInfo.xls";public static Map exportWinnersInfo(DispatchContext ctx,Map context){ Delegator delegator = ctx.getDelegator(); String co
2017-03-30 11:11:04
1457
原创 ofbiz--分页查询方法
前台用DataGrid显示表格信息public static Map getXXXList(DispatchContext ctx,Map context){ Delegator delegator = ctx.getDelegator(); String prizeName= (String) context.get("prizeName");//从前台接收的参数 Intege
2017-03-28 13:18:57
1374
原创 ofbiz Couldn't create server socket(/127.0.0.1:10523)
start运行时报这个错误的话,只需把\framework\webapp\config\url.properties中的 这两个端口号改一下就可以了,需要改的地方已经标红# HTTPS Port (Secure port)port.https.enabled=Yport.https=8443force.https.host=# HTTP Port (Not Secu
2017-03-22 15:34:54
24087
原创 exists关键字的通俗理解以及与in的比较
select num from a where num in (select num from b );select num from a where exists ( select 1 from b where num = a.num) ;这两条语句等价。实际上exists子句不返回任何数据,只返回 true OR false;如何更简单的理解exists关键字:
2017-02-22 23:04:36
641
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人