12 2018 档案

java 多线程通知 CountDownLatch 倒数计数器的使用
摘要:package com.hra.riskprice; import com.hra.riskprice.SysEnum.Factor_Type; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; impo... 阅读全文

posted @ 2018-12-23 16:09 听哥哥的话 阅读(236) 评论(0) 推荐(0)

java 多线程 同步 观察者 并发集合的一个例子
摘要://第一版 package com.hra.riskprice; import com.hra.riskprice.SysEnum.Factor_Type; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;... 阅读全文

posted @ 2018-12-22 22:12 听哥哥的话 阅读(325) 评论(0) 推荐(0)

java 小心使用float和double他可能不如你所想
摘要:public static void main(String[] args) { double funds=1.00; int itemBought=0; // double price=.1; for(price=.1;funds>=price;price+=.10){ funds-=price; ... 阅读全文

posted @ 2018-12-22 14:10 听哥哥的话 阅读(164) 评论(0) 推荐(0)

java集合示例 小心重载的陷阱
摘要:package com.hra.riskprice; import com.hra.riskprice.SysEnum.Factor_Type; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; impor... 阅读全文

posted @ 2018-12-22 12:56 听哥哥的话 阅读(158) 评论(0) 推荐(0)

含有选择器的 bootstrap菜单
摘要:var menu = new BootstrapMenu('#jsmind_container jmnode:not(.root)', { actions: [{ name: '展开节点', onClick: function () { ... 阅读全文

posted @ 2018-12-21 16:41 听哥哥的话 阅读(240) 评论(0) 推荐(0)

树呈现
摘要:public static IList LoadEntityTree(string valueField, string tableName, string nodeSourceKey, string parentKey, string textField, string where = "", string levelField = "", string StrucIdKey = "") ... 阅读全文

posted @ 2018-12-17 17:53 听哥哥的话 阅读(126) 评论(0) 推荐(0)

java通过接口扩展枚举
摘要:package com.hra.riskprice; import com.hra.riskprice.SysEnum.Factor_Type; import com.hra.riskprice.pojo.SysEnumDict; import com.sun.corba.se.spi.orb.Operation; import org.springframework.boot.SpringA... 阅读全文

posted @ 2018-12-16 11:39 听哥哥的话 阅读(764) 评论(0) 推荐(0)

java EnumSet
摘要:enum FrontConstant{plain,bold,italic} public static void main(String[] args) { EnumSet es=EnumSet.of(FrontConstant.plain);//#14 Iterator it=es.iterator(); System.out.pr... 阅读全文

posted @ 2018-12-15 23:41 听哥哥的话 阅读(240) 评论(0) 推荐(0)

Java中的逆变与协变 很直接不饶弯的讲出来了
摘要:```java 协变 extends只能new 辈分比自己低的家伙 List list001 = new ArrayList(); 初始化可以这样但不能添加非空元素 下面演示如何接收 int page=1; int rows=10; int limit=page*rows; int start=(page-1)*r... 阅读全文

posted @ 2018-12-15 19:42 听哥哥的话 阅读(167) 评论(0) 推荐(0)

java lambda
摘要:List currencyList=svc.findList(BasCurrency.class,"select * from bas_currency"); List dictList=svc.findList(SysEnumDict.class,"select * from sys_enum_dict"); Map currencyDict= curren... 阅读全文

posted @ 2018-12-14 16:06 听哥哥的话 阅读(109) 评论(0) 推荐(0)

EasyUITree设置节点选中
摘要:function callback1(){ reloadMind(); LoadTree0($("#tt1"),"137103"); setTimeout(function(){ var node = $('#tt1').tree('find', selectedTreeId); ... 阅读全文

posted @ 2018-12-13 22:04 听哥哥的话 阅读(306) 评论(0) 推荐(0)

oracle操作
摘要:DROP TABLESPACE ALM INCLUDING CONTENTS AND DATAFILES; 阅读全文

posted @ 2018-12-08 00:58 听哥哥的话 阅读(128) 评论(0) 推荐(0)

IDEA激活
摘要:https://blog.csdn.net/justszh/article/details/81484802 阅读全文

posted @ 2018-12-07 23:35 听哥哥的话 阅读(85) 评论(0) 推荐(0)

spring.boot mybaits集成
摘要:https://www.cnblogs.com/pejsidney/p/9272562.html (insertBatch批量插入) 第一篇博客循环部分有错误,参照下面的例子去更改 List list=new ArrayList(); list.add("1"); list.add("2"); list.add("3... 阅读全文

posted @ 2018-12-04 20:46 听哥哥的话 阅读(116) 评论(0) 推荐(0)

买茶叶想到的哪个比较便宜 x1/y1 >x2/y2 x代表多少钱 y代表 多少克 无聊的试炼
摘要:茶叶1 128元 200克 茶叶2 330元 160克 当然这个哪个便宜 一眼就知道了,这里不过抛砖引玉 128元 330元 200克 160克 我们把价钱用x表示 多少克用y表示 x>0 y>0 已知 x1 x2 ~ > ~ y1 y2 推导出x1y2>x2y1 可是为什么呢 假设 x2=x1*k 阅读全文

posted @ 2018-12-01 13:23 听哥哥的话 阅读(888) 评论(0) 推荐(0)

导航