`
文章列表

CMD

    博客分类:
  • cmd
del /s *(1).*     // 删除文件是 以(1)结尾的文件   查看端口号被占用:http://www.iteye.com/topic/1117270   window命令: eventvwr:事件查看器 services.msc 服务面板
如果想启用tomcat的远程调试功能,可以在catalina.bat 文件的第二行加上如下语句: if ""%1"" == ""stop"" goto skip_configSET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787:skip_config 然后再在myeclipse中右击项目出现如图: 打开Debug模 ...

java内部类

    博客分类:
  • jdk
定义一个测试类Test.java public class Test { public static void main(String[] args) { Runnable t = new Runnable(){ public void run() { } }; } private static class StaticClassA{} private class InnerClassB{} }  编译后得到Test$1.classTest$InnerClassB.classTest$StaticClassA.class ...

Tomcat Logs

详细博客地址:http://hilliate.blog.hexun.com/13105428_d.html 关于tomcat访问日志配置方法很简单:在server.xml里的<host>标签下加上<Valve className="org.apache.catalina.valves.AccessLogValve"directory="logs" prefix="localhost_access_log." suffix=".txt"pattern="common" res ...

WebService XFire

详细文章查看:http://blog.csdn.net/wlbing0625/article/details/7744699 XFire与Spring结合配置WebService有两种形式: 一、 使用XFire导出器配置 二、  使用JSR 181注解导出Web Service applicationContext.xml文件配置 <beans> <!-- ①引入XFire预配置信息 --> <import resource="classpath:org/codehaus/xfire/spring/xfire.xml ...
 需要使用commons-email-1.2.jar 和email必备的jar包 /** * 获取中文设置的发件人 * @param sender * @return * @throws UnsupportedEncodingException */ private static String getSenderZh(String sender) throws UnsupportedEncodingException { if (sender != null && !sender.trim().equals("&q ...

Spring Rmi

在项目中使用Spring RMI现在紧急做下代码级别的记录方便以后使用。 服务器配置项: <!-- 抽象的session工厂--> <bean id="xxxSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" > <property name="dataSource" ref="dataSource"/> <property name= ...
package com.opensymphony.xwork2.inject; /** * Dependency mapping key. Uniquely identified by the required type and name. * * @author crazybob@google.com (Bob Lee) */ class Key<T> { final Class<T> type; final String name; final int hashCode; // 注意此处private pr ...
 // ContainerImpl  中定义的静态内部类    /** * Injects a field or method in a given object. */ interface Injector extends Serializable { void inject(InternalContext context, Object o); } static class MissingDependencyException extends Exception { MissingDependencyExceptio ...
package com.opensymphony.xwork2.inject; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Proxy; import java.util.List; import java.util.ArrayList; /** * Context of a dependency cons ...
  单元测试JUnit:http://www.vscsoft.com/post/65.html Commons-logging:http://zhangjunhd.blog.51cto.com/113473/25135/ Spring事务配置:http://express.ruanko.com/ruanko-express_42/tech-overnight2.html   源出处。 http://www.cnblogs.com/m-xy/archive/2013/05/14/3077627.html关于tomcat集群处理同一的session文章:http://www.9iu ...
  public static String fileupload(File file, String srcName, String destName, String addType) throws Exception { SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMddHH"); // 拼写服务器保存路径 //String path = SysPara.GLOBAL_SAVE_ITEM_DIR +dateformat.format(new Date())+" ...

PropertiesLoaderUtils

/** * Convenient utility methods for loading of <code>java.util.Properties</code>, * performing standard handling of input streams. * * <p>For more configurable properties loading, including the option of a * customized encoding, consider using the PropertiesLoaderSupport ...

BeanUtils

  package org.springframework.beans; import java.beans.PropertyDescriptor; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.List; import ...

Xml学习网站

    博客分类:
  • Xml
http://www.ibm.com/developerworks/cn/xml/theme/x-java.html 
Global site tag (gtag.js) - Google Analytics