Time of Update: 2018-12-03
IMyCollectionpackage com.rain.Iterator;public interface IMyCollection<E> {int size();void add(E e);IMyIterator<E> iterator();}IMyIteratorpackage com.rain.Iterator;public interface IMyIterator <E>{ boolean hasNext(); E next();
Time of Update: 2018-12-03
JDom lib :http://www.jdom.org/downloads/index.htmlBeanFactory.xml<?xml version="1.0" encoding="UTF-8"?><Beans> <bean id="Car" class="com.rain.Factory.Car"> </bean> <bean id="SuperCar" class="com.rain.Factory.SuperCar">
Time of Update: 2018-12-03
1.使用Axis生產用戶端代碼(另存新檔bat檔案)之前很多次不行都是目錄包含空格 比如Axis_Lib,Output_Pathset Axis_Lib=F:\axis1.4\axis\WEB-INF\libset Java_Cmd=java -Djava.ext.dirs=%Axis_Lib% set Output_Path=D:\Workspacesset Package=com.axis.sub%Java_Cmd% org.apache.axis.wsdl.WSDL2Java
Time of Update: 2018-12-03
1.產生用戶端代碼 cmd下進入項目Src目錄下:cd D:\Workspaces\MyEclipse 10\WebService_CXF_Client\srcD:產生用戶端代碼 wsdl2java wdsl地址wsdl2java http://localhost:8080/WebService_CXF/WebService/userManager/UserServiceWs?wsdl2.編寫用戶端攔截器(添加使用者名稱告訴服務端自己是合法調用者) package
Time of Update: 2018-12-03
先部署axis項目把工程class檔案複製到axis中啟動tomcatcmd下發布服務 在tomcat 的webinf下建立 deploy.wsdd F: cd F:\Apache Software\apache-tomcat-6.0.30\webapps\FFWebservice\WEB-INF java -Djava.ext.dirs=lib org.apache.axis.client.AdminClient
Time of Update: 2018-12-03
1.必須包asm-3.3.jarcommons-logging-1.1.1.jarcxf-2.4.0.jarneethi-3.0.0.jarwsdl4j-1.6.2.jarxmlschema-core-2.0.jar2.定義介面package com.cxf.ws;import java.util.Map;import javax.jws.WebParam;import javax.jws.WebService;import javax.xml.bind.annotation.adapters.
Time of Update: 2018-12-03
進入點package multithreading.BlockingQueue;import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; import
Time of Update: 2018-12-03
<s:radio name="sex" list="#{'1':'男','2':'女'}" listKey="key"listValue="value" /><s:textfield name="a" label="rain11" value="%{rain}"></s:textfield><s:textfield name="c" label="rain12" value="%{#rain}"></s:textfield><s:
Time of Update: 2018-12-03
package multithreading;import java.util.concurrent.locks.Condition;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;/** * synchronized 的wait notify 沒有條件判斷 * Lock 的Condition的await,signal有條件判斷. *
Time of Update: 2018-12-03
http://localhost:8080/SSHLearning/tags/ssh_tree.action struts.xml <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"
Time of Update: 2018-12-03
IFilter:package com.rain.filter;public interface IFilter {void doFilter(Request request,Response response,FilterChain chain);}HtmlFilter: package com.rain.filter;public class HtmlFilter implements IFilter {@Overridepublic void doFilter(Request
Time of Update: 2018-12-03
package multithreading;import java.util.Random;//ThreadLocal<Integer>內部是用Map<Thread,Integer>實現的,線程之間獨立資料//localData單個變數//ThreadScopeData 多個變數的集合public class ThreadLocalTest {static ThreadLocal<Integer> localData=new ThreadLocal<
Time of Update: 2018-12-03
1,MyEclipse的外掛程式安裝是把spket1.6.18破解版.zip解壓後把 eclipse檔案夾 直接複製到MyEclipse安裝目錄的Genuitec\MyEclipse-8.6\dropins檔案夾下即可。啟動Myeclipse,開啟window—Preferences會發現多處了spket選項 2,下載jQuery檔案,(要下載開發版本)。3,設定spket。Window -> Preferences -> Spket -> JavaScript
Time of Update: 2018-12-03
package multithreading;import java.util.HashMap;import java.util.Map;import java.util.concurrent.locks.ReadWriteLock;import
Time of Update: 2018-12-03
1.自訂攔截器package com.cxf.interceptor;import java.util.List;import javax.xml.soap.SOAPException;import org.apache.cxf.binding.soap.SoapMessage;import org.apache.cxf.headers.Header;import org.apache.cxf.interceptor.Fault;import
Time of Update: 2018-12-03
轉載自:http://topic.csdn.net/u/20110905/11/1d40c9aa-b24e-4de8-bd85-f8925884c557.html?39540 1.文字框焦點問題onBlur:當失去輸入焦點後產生該事件onFocus:當輸入獲得焦點後,產生該檔案Onchange:當文字值改變時,產生該事件Onselect:當文字加亮後,產生該檔案<input type="text" value="mm" onfocus="if(value=='mm) {value=''}
Time of Update: 2018-12-03
myeclipse+weblogic的配置配置 WebLogic 12安裝 WebLogic 比較容易,在這裡就不再累述了,大家可以參閱相關文檔。現在著重講一下 WebLogic 的配置,因為後面在配置 MyEclipse 時將用到這裡的配置資訊。①運行開始 -> 程式 -> Oracle Enterprise Pack for Eclipse-> Oracle Enterprise Pack for Eclipse -> Start Admin Server for
Time of Update: 2018-12-03
The MSI'c:DOCUME~1ADMINI~1LOCALS~1Tempvmware_1259042193vmare Workstation.msi'failed. 1、用Windows最佳化助手或者CCleaner對電腦的臨時檔案和註冊表失效檔案進行清理。2、用VMware_Install_Cleaner.exe進行清理,貌似這個軟體對VMware Workstation6以上的沒有作用,不過youstar還是運行了一下的。3、對系統硬碟的”Documents and
Time of Update: 2018-12-03
//getResource方法使用了utf-8對路徑資訊進行了編碼,當路徑中存在中文和空格時,他會對這些字元進行轉換,這樣,得到的往往不是我們想要的真實路徑,在此,調用了URLDecoder的decode方法進行解碼,以便得到原始的中文及空格路徑。String configPath = XmlParserHandler.class.getResource("rain.xml").getFile();configPath =
Time of Update: 2018-12-03
評論介面<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> </head> <body>