摘要:
转: 使用Java NIO编写高性能的服务器 http://tenyears.iteye.com/blog/40489 View Code packagenio.file;importjava.io.FileInputStream;importjava.io.IOException;importjava.net.InetSocketAddress;importjava.nio.ByteBuffer;importjava.nio.CharBuffer;importjava.nio.channels.FileChannel;importjava.nio.channels.SelectionKey; 阅读全文
摘要:
Bootstrapping TomcatThe bootstrapping process is actually rather simple. All we have to do is:1、Set up the environment variables required by this Tomcat instance2、Instantiate the general class loaders that will be used for our running Tomcat instance3、Initialize this Tomcat instance4、Parse the main 阅读全文