共 6 篇文章 |
|
1 @Documented2 @Retention(value=RUNTIME)3 @Target(value=ANNOTATION_TYPE)4 public @interface Retention{5 RetentionPolicy value();@Inherited:将注释同样继承至使用了该注释类型的方法中(表达有点问题,就是如果一个方法使用了的注释用了@inherited, 那么其子类的该方法同样继承了该注释)注意事项: 1.所有的Annotation自动继承java... 阅312 转0 评0 公众公开 13-01-07 03:55 |
基于Apache的Tomcat负载均衡和集群。下载地址是http://www.fayea.com/apache-mirror//tomcat/tomcat-connectors/jk/binaries/windows/ JK要与Apache版本对应。关闭其中一个tomcat 1,tomcat 1 原来处理的请求会被其他tomcat2 接收,如果此前被关闭的tomca 1t 的session 中存在信息, tomcat2 中tomcat1 的session 信息依然存在,表现为登录——... 阅1563 转17 评0 公众公开 13-01-07 03:05 |
Class clazz2 = Class.forName("java.lang.String");*/ //试一下第二种构造方法, Constructor con2 =clazz.getDeclaredConstructor(char[].class,boolean.class); con2.setAccessible(true); String str2 = (String)con2.newInstance(chs, true); System.out.println(str2); String str4 = (String)con2.newInstance(chs, false); S... 阅2114 转6 评0 公众公开 13-01-07 02:34 |
如我的maven环境为:F:\maven\apache-maven-3.0.3.变量值:F:\maven\apache-maven-3.0.3.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"... 阅105 转0 评0 公众公开 13-01-06 16:51 |
如我的maven环境为:F:\maven\apache-maven-3.0.3.变量值:F:\maven\apache-maven-3.0.3.<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"... 阅175 转2 评0 公众公开 12-12-19 14:43 |
节点流:节点流从一个特定的数据源读写数据。例如BufferedInputStream和BufferedOutputStream,使用已经存在的节点流来构造,提供带缓冲的读写,提高了读写的效率,以及DataInputStream和DataOutputStream,使用已经存在的节点流来构造,提供了读写Java中的基本数据类型的功能。DataInputStream和DataOutputStream分别继承自InputStream和Outpu... 阅13437 转101 评0 公众公开 12-12-19 12:50 |