- 浏览: 47126 次
- 性别:
- 来自: 南京
最新评论
-
asialee:
博主这块写的挺好的,我完全看了,不过我也写了一些关于编解码器的 ...
Netty3.1中文用户手册
文章列表
@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 ...
/**
* 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( ...
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: ...
SpringMVC基础知识:
核心类和接口
DispatcherServlet -- 前置控制器
HandlerMapping接口 -- 处理请求的映射
HandlerMapping接口的实现类:
SimpleUrlHandlerMapping 通过配置文件,把一个URL映射到Controller
DefaultAnnotationHandlerMapping 通过注解,把一个URL映射到Controller类上
HandlerAdapter接口 -- 处理请求的映射
AnnotationMethodHandlerAdapter类,通过注解,把一个 ...
- 2012-03-29 23:21
- 浏览 4845
- 评论(0)
用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 ...
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 ...