`
spdx4046
  • 浏览: 47126 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
文章列表

bat启动java

    博客分类:
  • java
@echo off SETLOCAL ENABLEDELAYEDEXPANSION set classpath1= FOR %%c in ("../Depends/*.jar") DO set classpath1=!classpath1!;../Depends/%%c set classpath2= FOR %%c in ("../Bin/*.jar") DO set classpath2=!classpath2!;../Bin/%%c set classpath1=../Conf;%classpath1%;%classpath2% echo %c ...

JMS超时处理方案2

    博客分类:
  • java
/**      * set client id      * @param conn jms connection      * @param timeout timeout      * @param unit time unit      * @return Boolean true or false      * @throws LogCollectionException LogCollectionException      * @throws IOException IOException      */     public static Boolean setClientId( ...

JMS超时处理方案1

    博客分类:
  • java
import java.io.IOException; import java.io.InterruptedIOException; import java.net.SocketTimeoutException; import java.util.UUID; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executo ...

webservice

    博客分类:
  • java
修改axis包中的server-config.xml文件即可 <?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <globalConfiguration>   <parameter name="sendMul ...
<bean id="dataSource"     class="org.apache.commons.dbcp.BasicDataSource">         <property name="driverClassName"><value>oracle.jdbc.OracleDriver</value></property>         <property name="url"><value>jdbc:oracle: ...

SpingMVC2

SpringMVC基础知识: 核心类和接口 DispatcherServlet   -- 前置控制器 HandlerMapping接口 -- 处理请求的映射 HandlerMapping接口的实现类: SimpleUrlHandlerMapping  通过配置文件,把一个URL映射到Controller DefaultAnnotationHandlerMapping  通过注解,把一个URL映射到Controller类上 HandlerAdapter接口 -- 处理请求的映射 AnnotationMethodHandlerAdapter类,通过注解,把一个 ...
用spring获取bean违例 1:定义工程接口 package com.spdx.app.proxy; public interface IBeanFactory {     public Object createBean(String beanName); } 2:定义抽象工程,实现单例 public abstract class AbstractBeanFactory implements IBeanFactory {         private static String className = "com.spdx.app.proxy.SimpleBeanFact ...

SpringMVC

    博客分类:
  • java
1:web.xml的配置 <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml ...
Global site tag (gtag.js) - Google Analytics