摘要:
import java.io.File;import java.io.RandomAccessFile;import java.nio.MappedByteBuffer;import java.nio.channels.FileChannel;public class Test { public static void main(String[] args) throws Exception { final int BUFFER_SIZE = 0x1200000;// 缓冲大小为12M System.out.println(BUFFER_SIZ... 阅读全文
posted @ 2013-07-12 13:16
清新每一天
阅读(421)
评论(0)
推荐(0)
摘要:
A.2.1 概述 如果我们希望覆盖在default.properties文件里面定义的默认配置,那就可以定义struts.properties文件,在里面设置我们需要的值,当然现在也可以在struts.xml中配置元素来实现同样的功能。 如果配置struts.properties文件,需要把它放置到当前的classpath下面,如果用Eclipse开发,把这个文件放到src下面就可以,会自动编译到classes下面。 struts.properties文件内的格式是“key=value”,一行一对的进行配置。A.2.2 具体的参数描述1:struts.c... 阅读全文
posted @ 2013-07-12 11:51
清新每一天
阅读(524)
评论(0)
推荐(0)