回答了问题2016-04-17
1.2.3版本后的FastJson没有这个问题
回答了问题2016-04-17
因为Oracle使用的授权协议,Maven的中央库不被允许托管其artifacts,你可以本地安装Oracle数据库,然后将安装目录中的JDBC jar包install到本地的Maven仓库,Maven命令:
赞了回答2016-03-19
Ruby也好,Python也罢,都仅仅指的是一种语言。这就好像ISO定义好了C++语言规范,而大家都可以来实现这个规范(Microsoft的VC++, GNU的GCC等)
回答了问题2016-03-19
你本意是importjava.util.List吧,但你的Mapper类import的是com.sun.tools.javac.util.List。
赞了回答2016-03-19
Java平台允许我们在内存中创建可复用的Java对象,但一般情况下,只有当JVM处于运行时,这些对象才可能存在,即,这些对象的生命周期不会比JVM的生命周期更长。但在现实应用中,就可能要求在JVM停止运行之后能够保存(持久化)指定的对象,并在将来重新读取被保存的对象...
回答了问题2016-03-19
回调的意思就是,你实现一个接口(不一定非得是接口),但不去调用这个接口,而是让定义这个接口的一方(这里应该指Java类库)去调用你给的实现。
提出了问题2016-03-19
回答了问题2016-03-09
如果Java的设计模式,推荐《研磨设计模式》,很浅显易懂,涉及到实际的环境 恩阅读框架也是一个学习方式,比如Netty的ChannelHandler就用到了职责链模式
赞了回答2016-01-15
jsoup: Java HTML Parser
发布了文章2016-01-15
目标:使宿主机(OS X)下的Workbench访问VirtualBox VM(Ubuntu 14.04)中部署的MySQL 5.6服务器。
关注了问题2015-08-25
发布了文章2015-07-25
首先需要明确,JavaScript并不是传统意义上的OO语言,它并没有class的概念, 而是包含了另一套异常强大的原型机制。它的类型体系、继承体系都建立在原型基础之上。 为了迎合传统的OO开发者,JavaScript语言的设计者通过这套原型体系模拟了传统面向对象语言的编码风格。
提出了问题2015-03-29
发布了文章2015-03-12
【8.3 Handling idle connections and timeouts】 You may find times when you want to handle idle connections and timeouts. Typically youd send a message, also called a "heartbeat," to the remote peer if it idles too long in order to detect if its st...
发布了文章2015-03-11
Thanks to its unified Transport API, Netty makes writing UDP based applications easy as taking a breath. This allows you to reuse existing ChannelHandlers and other utilities that you have written for other Netty based Applications.
发布了文章2015-03-11
EventLoop and EventLoopGroup Remember the EventLoop that is assigned to the Channel is responsible to handle all the operations for the Channel. Which means whenever you execute a method that returns a ChannelFuture it will be executed in the Even...
发布了文章2015-03-10
【7.1 codec】 Whenever you write a network-based program, youll need to implement some kind of codec. The codec defines how the raw bytes need to be parsed and converted to some kind of logic unit that represents a custom message. The same is true...
提出了问题2015-03-09
发布了文章2015-03-08
What makes ChannelHandler even more powerful is that you can chain them so each ChannelHandler implementation can fulfill small tasks. This helps you write clean and reusable implementations.
发布了文章2015-03-07
Netty uses reference-counting to know when it s safe to release a Buf and its claimed resources. While it s useful to know that Netty uses reference counting, it s all done automatically. This allows Netty to use pooling and other tricks to speed ...