Ò»¸öJava·´Éä»úÖÆÀý×Ó
來Ô´£ºhttp://blog.csdn.net/loyoveui/archive/2007/06/22/1662154.aspx
package test;
import java.lang.reflect.Method;
public class InvokeTest {
/**
*
* main ·½·¨
* @param args
* void
*/
public static void main(String[] args) {
try {
InvokeTest invokeTest = new InvokeTest();
//1.µÚÒ»²½»ñÈ¡·½·¨µÄÓ³Éä
//String[] realArgs = {"",""};//¶¨ÒåÒ»¸öÓëexecute·½·¨µÚ1¸ö²ÎÊý¶ÔÓ¦µÄStringÊý×é(×¢Òâ´ËÊý×éֻΪ»ñÈ¡·½·¨µÄÓ³Éä)
//Integer in = new Integer(0);//¶¨ÒåÒ»¸öÓëexecute·½·¨µÚ2¸ö²ÎÊý¶ÔÓ¦µÄInteger¶ÔÏó
//Class[] c_args = new Class[2];
//c_args[0] = realArgs.getClass();//·Ö±ð»ñÈ¡ÒÔÉÏÁ½¸ö²ÎÊýµÄclass
//c_args[1] = in.getClass();
//Method method = invokeTest.getClass().getMethod("execute", c_args);//·µ»ØֵΪtest·½·¨µÄÓ³Éä(ÀàÐÍMethod)
/**
* ×¢Ò⣬ÒÔÉϼ¸¾ä(11-16ÐÐ)¿ÉÒÔд³ÉÏÂÃæÒ»¾ä
* Ä¿µÄÊÇ»ñÈ¡execute·½·¨µÄÓ³Éä,µÚÒ»¸ö²ÎÊýÊÇ·½·¨,µÚ¶þ¸ö²ÎÊýÊÇexecute·½·¨ËùÐèÒªµÄ²ÎÊýÁбí,ÀàÐÍÊÇclass
* ËùÒÔµ±execute·½·¨Ã»ÓвÎÊýʱ,getMethodµÚ¶þ¸ö²ÎÊýΪnull¼´¿É
*/
Method method = invokeTest.getClass().getMethod("execute",
new Class[] { String[].class, Integer.class });
//2.µÚ¶þ²½µ÷Ó÷½·¨
//String[] a1={"zhong","cheng"};//ÕâÀïµÄÊý×éÓÃÓÚ×öÕæÕýµ÷ÓÃʱµÄ²ÎÊý
//Integer a
Ïà¹ØÎĵµ£º
˼·£ºÉú³ÉÒ»¸öËæ»úÊý----ת»»³É16½øÖÆ»òÆäËûÂëÖµ------ת»»³Éºº×Ö×Ö·û---ÏÔʾ
Éú³ÉÒ»¸öËæ»úÊý£¬ ÔÚ0x5000µ½0x9000Ö®¼äµÄ¶¼ÊǺº×Ö
ÎÒÖ»½²ÔÀí£¬µ«¾ßÌåµ½ÄãʹÓÃʲô±à³Ì¹¤¾ßÊÇÄã×Ô¼ºµÄÎÊÌâ¡£
Èκαà³Ì¿ª·¢¹¤¾ß¶¼ÓÐËæ»úÊýÕâ¸ö¸ÅÄ¶øÎÒÃǵÄÇøλÂëÕýºÃÊÇÓÉËÄλÊý×Ö×é³ÉµÄ£¬ÇøλÊäÈë·¨¿ÉÒÔÊäÈëGB2312-80µÄÈ«²¿ºº×Ö£¬ ......
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔسö´¦£ºhttp://blog.csdn.net/royaki/archive/2009/05/07/4159279.aspx
1¡¢½¨Á¢Ò»¸öServlet²¢ÇÒʵÏÖFilter½Ó¿Ú
¸ÃÀàÐèҪʵÏÖFilter½Ó¿ÚÖеÄinit() doFilter() destory()·½·¨
ÆäÖÐinit()·½·¨×Ô¶¯ÔÚÏîÄ¿Æô¶¯µÄʱºò¼ÓÔØ£¬doFilter()ÔÚµ÷ÓÃxmlÅäÖõÄ·¾¶ÊǼÓÔØ£¬d ......
±í´ïʽÒâÒ壺
1.×Ö·û
x ×Ö·û x¡£ÀýÈça±íʾ×Ö·ûa
\\ ·´Ð±Ïß×Ö·û¡£ÔÚÊéдʱҪдΪ\\\\¡££¨×¢Ò⣺ÒòΪjavaÔÚµÚÒ»´Î½âÎöʱ,°Ñ\\\\½âÎö³ÉÕýÔò±í´ïʽ\\£¬ÔÚµÚ¶þ´Î½âÎöʱÔÙ½âÎöΪ\£¬ËùÒÔ·²ÊDz»ÊÇ1.1Áоٵ½µÄתÒå×Ö·û£¬°üÀ¨1.1µÄ\\,¶øÓÖ´øÓÐ\µÄ¶¼ÒªÐ´Á½´Î£©
\0n ´øÓа ......
ÔÚ·Ö²¼Ê½·þÎñ¿ò¼ÜÖУ¬Ò»¸ö×î»ù´¡µÄÎÊÌâ¾ÍÊÇÔ¶³Ì·þÎñÊÇÔõôͨѶµÄ£¬ÔÚJavaµ×²ãÁìÓòÖÐÓкܶà¿ÉʵÏÖÔ¶³ÌͨѶµÄ¼¼Êõ£¬ÀýÈ磺RMI¡¢MINA¡¢ESB¡¢Burlap¡¢SOAP¡¢EJBºÍJMS µÈ£¬ÔÚj2eeÖÐ,¶Ôjavaµ×²ãÔ¶³ÌͨѶµÄ¼¼Êõ½øÐÐÁË·â×°,ÐγÉÁË Hessian ¡¢ HttpInvoker ¡¢ XFire ¡¢ Axis µÈ¶àÖÖÐÎʽµÄÔ¶³Ìµ÷Óü¼Êõ¡£ µ«¶Ô¸ß¼¶³ÌÐòÔ±¶øÑÔÈÔÐ ......