https://docs.spring.io/spring/docs/1.2.x/javadoc-api/org/springframework/util/FileCopyUtils.html 用法举例: ...
分类:
其他好文 时间:
2016-08-06 09:44:34
阅读次数:
142
2016年8月6日 星期六 --出埃及记 Exodus 16:6So Moses and Aaron said to all the Israelites, "In the evening you will know that it was the LORD who brought you out ...
分类:
其他好文 时间:
2016-08-06 09:42:33
阅读次数:
113
1+2+3+4+5+6+7 = ? ①事物本身 ②分析过程 ③结果 ①③都很简单 唯独② 可以通过步骤分析计算、技巧计算、天马星空联想各种各样的途径 记忆的过程,从左至右,通过中间关联,通过无数次的推导,提升一个层次,模糊掉中间过程,A 直接 B ...
分类:
其他好文 时间:
2016-08-06 09:42:44
阅读次数:
113
https://jax-rs-spec.java.net/nonav/2.0-rev-a/apidocs/index.html http://tools.ietf.org/html/rfc5234 通过java api 注解类生成 RESTful 举例:@Path("/swagger.{type:j ...
分类:
其他好文 时间:
2016-08-06 09:41:51
阅读次数:
127
Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek()operation -- it es ...
分类:
其他好文 时间:
2016-08-06 09:40:50
阅读次数:
140
这是一道半平面交的裸题,第一次写半平面交,就说一说我对半平面交的理解吧。 所谓半平面交,就是求一大堆二元一次不等式的交集,而每个二元一次不等式的解集都可以看成是在一条直线的上方或下方,联系直线的标准方程就可以得出。于是乎这些不等式就可以转化为一些半平面,求的就是半平面交。 而半平面交不可能交出凹多边 ...
分类:
其他好文 时间:
2016-08-06 09:42:34
阅读次数:
154
BrokerStartup.java MixAll.java 由资源文件生成对象: 首先获取资源文件 获取对象的所有set开头的方法 截取方法,如:setMethod1 则为 method1 通过key获取properties文件value 获取该方法参数类型 调用该方法。 从而完成set 。 ...
分类:
其他好文 时间:
2016-08-06 08:38:46
阅读次数:
1115
Activates various annotations to be detected in bean classes: Spring's @Required and @Autowired, as well as JSR 250's @PostConstruct, @PreDestroy and ...
分类:
其他好文 时间:
2016-08-06 08:37:15
阅读次数:
223
http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp/^[0-9a-zA-Z]*$/g ...
分类:
其他好文 时间:
2016-08-06 08:35:45
阅读次数:
143
Activates replacement of ${...} placeholders by registering a PropertySourcesPlaceholderConfigurer within the application context. Properties will be ...
分类:
其他好文 时间:
2016-08-06 08:38:03
阅读次数:
189
1. jps 获取要监控broker jvm 的进程ID jsp 2. nohup 输出监控日志 nohup jstat -gc -t [pid] [interval] -t 会在每一条记录前加时间戳,执行命令间隔interval(毫秒) 3. 想要结束监控时Ctrl+C 4. 查看日志 cat n ...
分类:
其他好文 时间:
2016-08-06 08:35:17
阅读次数:
216
Spring Bean Configuration File 命名空间 xmlns:context="http://www.springframework.org/schema/context" 语法 http://www.springframework.org/schema/context htt ...
分类:
其他好文 时间:
2016-08-06 08:36:41
阅读次数:
117
High availability is a characteristic of a system, which describes the duration (length of time) for which the system is operational. HAService.java 即 ...
分类:
其他好文 时间:
2016-08-06 08:37:34
阅读次数:
136
22 a b-s sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-a.properties &sh mqbroker -c $ROCKETMQ_HOME/conf/2m-2s-async/broker-b-s.properties & 23 ...
分类:
其他好文 时间:
2016-08-06 08:34:41
阅读次数:
166
case: runbroker.sh JAVA_OPT 使用的是默认参数,broker运行过程中新生代垃圾回收次数较少,频繁出现老生代垃圾回收 cms gc ,并且老生代内存回收不掉。造成卡顿、消息发送失败。最终导致java heap 被占用完,broker 宕机。求教! 内存分析: broker瘫 ...
分类:
其他好文 时间:
2016-08-06 08:35:48
阅读次数:
187