锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV日韩AV天堂一区二区三区,丁香五月亚洲综合深深爱,亚洲成a人片在线观看老师http://www.tkk7.com/b1412/archive/2012/06/29/381834.html鍛ㄧ鍛ㄧFri, 29 Jun 2012 07:07:00 GMThttp://www.tkk7.com/b1412/archive/2012/06/29/381834.htmlhttp://www.tkk7.com/b1412/comments/381834.htmlhttp://www.tkk7.com/b1412/archive/2012/06/29/381834.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/381834.htmlhttp://www.tkk7.com/b1412/services/trackbacks/381834.html鎱㈡參鐪嬨奌adoop瀹炴垬?shù)腑鏂囩増銆嬶紝浜?jiǎn)瑙e垎甯冨紡绯痪l?br />璁ょ湡闃呰銆婅璁℃ā寮忎箣紱呫嬶紝鍔犳繁瀵硅嚜宸卞凡緇忓湪瀹為檯欏圭洰涓繍鐢ㄧ殑妯″紡鐨勭悊瑙c?br />闃呰銆妀ava瑙f儜銆嬬殑鍚庡崐閮ㄥ垎錛?騫村墠璇昏繃鍓嶅嚑鍗佹潯寤鴻錛夛紝浜?jiǎn)瑙>~栫爜涓殑闄烽槺銆?img src ="http://www.tkk7.com/b1412/aggbug/381834.html" width = "1" height = "1" />

鍛ㄧ 2012-06-29 15:07 鍙戣〃璇勮
]]>
銆愭敹闆嗐慗ava8http://www.tkk7.com/b1412/archive/2012/06/27/381592.html鍛ㄧ鍛ㄧWed, 27 Jun 2012 03:47:00 GMThttp://www.tkk7.com/b1412/archive/2012/06/27/381592.htmlhttp://www.tkk7.com/b1412/comments/381592.htmlhttp://www.tkk7.com/b1412/archive/2012/06/27/381592.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/381592.htmlhttp://www.tkk7.com/b1412/services/trackbacks/381592.htmlState of the Lambdahttp://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-4.html 

jdk蹇偣鍑哄惂lambdba鎶婏紝涓鐩寸敤op4j鍜宭ambdbaj榪欎簺jar鍖呭緢铔嬬柤銆傘?br />

鍛ㄧ 2012-06-27 11:47 鍙戣〃璇勮
]]>
Connection is read-only. Queries leading to data modification are not allowedhttp://www.tkk7.com/b1412/archive/2012/05/24/378999.html鍛ㄧ鍛ㄧThu, 24 May 2012 01:59:00 GMThttp://www.tkk7.com/b1412/archive/2012/05/24/378999.htmlhttp://www.tkk7.com/b1412/comments/378999.htmlhttp://www.tkk7.com/b1412/archive/2012/05/24/378999.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/378999.htmlhttp://www.tkk7.com/b1412/services/trackbacks/378999.htmlspring閰嶇疆璇ユ柟娉曞彧璇諱簡(jiǎn)銆?br />
<bean id="txProxyTemplate" abstract="true"
       class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
       <property name="transactionManager" ref="transactionManager"/>
       <property name="transactionAttributes">
           <props>
              <prop key="affirm*">PROPAGATION_REQUIRED</prop>
              <prop key="gen*">PROPAGATION_REQUIRED</prop>
               <prop key="save*">PROPAGATION_REQUIRED</prop>
               <prop key="update*">PROPAGATION_REQUIRED</prop>
               <prop key="create*">PROPAGATION_REQUIRED</prop>
               <prop key="process*">PROPAGATION_REQUIRED</prop>                               
               <prop key="delete*">PROPAGATION_REQUIRED</prop>               
               <prop key="remove*">PROPAGATION_REQUIRED</prop>
               <prop key="send*">PROPAGATION_REQUIRED</prop>
  <prop key="upload*">PROPAGATION_REQUIRED</prop>               
               <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
           </props>
       </property></bean>



鍛ㄧ 2012-05-24 09:59 鍙戣〃璇勮
]]>
銆愯漿銆慾ava榪涘埗杞崲http://www.tkk7.com/b1412/archive/2012/04/29/377023.html鍛ㄧ鍛ㄧSun, 29 Apr 2012 04:10:00 GMThttp://www.tkk7.com/b1412/archive/2012/04/29/377023.htmlhttp://www.tkk7.com/b1412/comments/377023.htmlhttp://www.tkk7.com/b1412/archive/2012/04/29/377023.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/377023.htmlhttp://www.tkk7.com/b1412/services/trackbacks/377023.html鍗佽繘鍒惰漿鎴愬崄鍏繘鍒訛細(xì) 
Integer.toHexString(int i) 
鍗佽繘鍒惰漿鎴愬叓榪涘埗 
Integer.toOctalString(int i) 
鍗佽繘鍒惰漿鎴愪簩榪涘埗 
Integer.toBinaryString(int i) 
鍗佸叚榪涘埗杞垚鍗佽繘鍒?nbsp;
Integer.valueOf("FFFF",16).toString() 
鍏繘鍒惰漿鎴愬崄榪涘埗 
Integer.valueOf("876",8).toString() 
浜岃繘鍒惰漿鍗佽繘鍒?nbsp;
Integer.valueOf("0101",2).toString() 

鏈変粈涔堟柟娉曞彲浠ョ洿鎺ュ皢2,8,16榪涘埗鐩存帴杞崲涓?0榪涘埗鐨勫悧? 
java.lang.Integer綾?nbsp;
parseInt(String s, int radix) 
浣跨敤絎簩涓弬鏁版寚瀹氱殑鍩烘暟錛屽皢瀛楃涓插弬鏁拌В鏋愪負(fù)鏈夌鍙風(fēng)殑鏁存暟銆?nbsp;
examples from jdk: 
parseInt("0", 10) returns 0 
parseInt("473", 10) returns 473 
parseInt("-0", 10) returns 0 
parseInt("-FF", 16) returns -255 
parseInt("1100110", 2) returns 102 
parseInt("2147483647", 10) returns 2147483647 
parseInt("-2147483648", 10) returns -2147483648 
parseInt("2147483648", 10) throws a NumberFormatException 
parseInt("99", throws a NumberFormatException 
parseInt("Kona", 10) throws a NumberFormatException 
parseInt("Kona", 27) returns 411787 

榪涘埗杞崲濡備綍鍐欙紙浜岋紝鍏紝鍗佸叚錛変笉鐢ㄧ畻娉?nbsp;
Integer.toBinaryString 
Integer.toOctalString 
Integer.toHexString 


渚嬩簩 

public class Test{ 
   public static void main(String args[]){ 

    int i=100; 
    String binStr=Integer.toBinaryString(i); 
    String otcStr=Integer.toOctalString(i); 
    String hexStr=Integer.toHexString(i); 
    System.out.println(binStr); 





渚嬩簩 
public class TestStringFormat { 
   public static void main(String[] args) { 
    if (args.length == 0) { 
       System.out.println("usage: java TestStringFormat <a number>"); 
       System.exit(0); 
    } 

    Integer factor = Integer.valueOf(args[0]); 

    String s; 

    s = String.format("%d", factor); 
    System.out.println(s); 
    s = String.format("%x", factor); 
    System.out.println(s); 
    s = String.format("%o", factor); 
    System.out.println(s); 
   } 




鍏朵粬鏂規(guī)硶錛?nbsp;

Integer.toHexString(浣犵殑10榪涘埗鏁?; 
渚嬪 
String temp = Integer.toHexString(75); 
杈撳嚭temp灝變負(fù) 4b 



//杈撳叆涓涓?0榪涘埗鏁板瓧騫舵妸瀹冭漿鎹㈡垚16榪涘埗 
import java.io.*; 
public class toHex{ 

public static void main(String[]args){ 

int input;//瀛樻斁杈撳叆鏁版嵁 
//鍒涘緩杈撳叆瀛楃涓茬殑瀹炰緥 
BufferedReader strin=new BufferedReader(new InputStreamReader(System.in)); 
System.out.println("璇瘋緭鍏ヤ竴涓殑鏁存暟錛?); 
String x=null; 
try{ 
x=strin.readLine(); 
}catch(IOException ex){ 
ex.printStackTrace(); 

input=Integer.parseInt(x); 
System.out.println ("浣犺緭鍏ョ殑鏁板瓧鏄細(xì)"+input);//杈撳嚭浠庨敭鐩樻帴鏀跺埌鐨勬暟瀛?nbsp;

System.out.println ("瀹冪殑16榪涘埗鏄細(xì)"+Integer.toHexString(input));//鐢╰oHexString鎶?0榪涘埗杞崲鎴?6榪涘埗 

鍛ㄧ 2012-04-29 12:10 鍙戣〃璇勮
]]>
[杞琞鍒╃敤jrebel瀹炵幇Tomcat鐨勭儹鍔犺澆http://www.tkk7.com/b1412/archive/2012/03/26/372713.html鍛ㄧ鍛ㄧMon, 26 Mar 2012 07:27:00 GMThttp://www.tkk7.com/b1412/archive/2012/03/26/372713.htmlhttp://www.tkk7.com/b1412/comments/372713.htmlhttp://www.tkk7.com/b1412/archive/2012/03/26/372713.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/372713.htmlhttp://www.tkk7.com/b1412/services/trackbacks/372713.htmlhttp://linbin007.iteye.com/blog/809759
-noverify 
-javaagent:D:/jrebel.jar
-Drebel.dirs=E:\workspace\WantWant\webapp\WEB-INF\classes


鍛ㄧ 2012-03-26 15:27 鍙戣〃璇勮
]]>
javassist.NotFoundException http://www.tkk7.com/b1412/archive/2012/03/22/372465.html鍛ㄧ鍛ㄧThu, 22 Mar 2012 07:22:00 GMThttp://www.tkk7.com/b1412/archive/2012/03/22/372465.htmlhttp://www.tkk7.com/b1412/comments/372465.htmlhttp://www.tkk7.com/b1412/archive/2012/03/22/372465.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/372465.htmlhttp://www.tkk7.com/b1412/services/trackbacks/372465.html

Class search path

The default ClassPool returned by a static method ClassPool.getDefault() searches the same path that the underlying JVM (Java virtual machine) has. If a program is running on a web application server such as JBoss and Tomcat, the ClassPool object may not be able to find user classes since such a web application server uses multiple class loaders as well as the system class loader. In that case, an additional class path must be registered to the ClassPool. Suppose that pool refers to aClassPool object:

    pool.insertClassPath(new ClassClassPath(this.getClass())); 

This statement registers the class path that was used for loading the class of the object that this refers to. You can use any Class object as an argument instead ofthis.getClass(). The class path used for loading the class represented by that Class object is registered.

You can register a directory name as the class search path. For example, the following code adds a directory /usr/local/javalib to the search path:

    ClassPool pool = ClassPool.getDefault(); pool.insertClassPath("/usr/local/javalib"); 

The search path that the users can add is not only a directory but also a URL:

    ClassPool pool = ClassPool.getDefault(); ClassPath cp = new URLClassPath("www.javassist.org", 80, "/java/", "org.javassist."); pool.insertClassPath(cp); 

This program adds "http://www.javassist.org:80/java/" to the class search path. This URL is used only for searching classes belonging to a package org.javassist. For example, to load a class org.javassist.test.Main, its class file will be obtained from:

    http://www.javassist.org:80/java/org/javassist/test/Main.class 

Furthermore, you can directly give a byte array to a ClassPool object and construct a CtClass object from that array. To do this, use ByteArrayClassPath. For example,

    ClassPool cp = ClassPool.getDefault(); byte[] b = a byte array; String name = class name; cp.insertClassPath(new ByteArrayClassPath(name, b)); CtClass cc = cp.get(name); 

The obtained CtClass object represents a class defined by the class file specified by b. The ClassPool reads a class file from the given ByteArrayClassPath if get() is called and the class name given to get() is equal to one specified by name.

If you do not know the fully-qualified name of the class, then you can use makeClass() in ClassPool:

    ClassPool cp = ClassPool.getDefault(); InputStream ins = an input stream for reading a class file; CtClass cc = cp.makeClass(ins); 

makeClass() returns the CtClass object constructed from the given input stream. You can use makeClass() for eagerly feeding class files to the ClassPool object. This might improve performance if the search path includes a large jar file. Since a ClassPool object reads a class file on demand, it might repeatedly search the whole jar file for every class file. makeClass() can be used for optimizing this search. The CtClass constructed by makeClass() is kept in the ClassPool object and the class file is never read again.

The users can extend the class search path. They can define a new class implementing ClassPath interface and give an instance of that class to insertClassPath() inClassPool. This allows a non-standard resource to be included in the search path.





package com.cloud.dm.util;

import java.io.File;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import javassist.ClassClassPath;
import javassist.ClassPool;
import javassist.CtClass;
import javassist.CtMethod;
import javassist.CtNewMethod;
import javassist.bytecode.DuplicateMemberException;

import org.apache.commons.lang3.StringUtils;

public class Struts2GetterSetterGen {
    private static ClassPool pool = ClassPool.getDefault();

    public static void init() throws Exception {
        URL url = Struts2GetterSetterGen.class.getResource("/");
        List<File> resultList = new ArrayList<File>();
        FileSearcher.findFiles(url.getFile(), "*Action.class", resultList);
        for (File object : resultList) {
            String className = StringUtils.substringBetween(object.toString(),
                    "classes\\", ".class").replaceAll("\\\\", ".");
            CtClass ct = null;
            pool.insertClassPath(new ClassClassPath(Class.forName(className))); //鍦╯ervlet瀹瑰櫒涓惎鍔?/span>
            ct = pool.get(className);
            Field[] fs = Class.forName(className).getDeclaredFields();
            for (Field f : fs) {
                genGetter(ct, f);
                genSetter(ct, f);
            }
            ct.writeFile(url.getPath()); // 瑕嗙洊涔嬪墠鐨刢lass鏂囦歡
        }
    }

    private static void genGetter(CtClass ct, Field field) throws Exception {
        String string = "public " + field.getType().getName() + " get"
                + StringUtils.capitalize(field.getName()) + "() {return "
                + field.getName() + "; }";
        CtMethod m = CtNewMethod.make(string, ct);
        try {
            ct.addMethod(m);
        } catch (DuplicateMemberException e) {
        }
    }

    private static void genSetter(CtClass ct, Field field) throws Exception {
        String string = "public void set"
                + StringUtils.capitalize(field.getName()) + "("
                + field.getType().getName() + " " + field.getName() + "){this."
                + field.getName() + " = " + field.getName() + "; }";
        CtMethod m = CtNewMethod.make(string, ct);
        try {
            ct.addMethod(m);
        } catch (DuplicateMemberException e) {
        }
    }
}




鍛ㄧ 2012-03-22 15:22 鍙戣〃璇勮
]]>
銆愭暣鐞嗘敹闆嗐憇pring data jpahttp://www.tkk7.com/b1412/archive/2012/03/19/372171.html鍛ㄧ鍛ㄧMon, 19 Mar 2012 01:55:00 GMThttp://www.tkk7.com/b1412/archive/2012/03/19/372171.htmlhttp://www.tkk7.com/b1412/comments/372171.htmlhttp://www.tkk7.com/b1412/archive/2012/03/19/372171.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/372171.htmlhttp://www.tkk7.com/b1412/services/trackbacks/372171.htmlhttp://www.ibm.com/developerworks/cn/opensource/os-cn-spring-jpa/index.html

鍛ㄧ 2012-03-19 09:55 鍙戣〃璇勮
]]>
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://www.tkk7.com/b1412/archive/2012/03/15/371945.html鍛ㄧ鍛ㄧThu, 15 Mar 2012 07:21:00 GMThttp://www.tkk7.com/b1412/archive/2012/03/15/371945.htmlhttp://www.tkk7.com/b1412/comments/371945.htmlhttp://www.tkk7.com/b1412/archive/2012/03/15/371945.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/371945.htmlhttp://www.tkk7.com/b1412/services/trackbacks/371945.html


org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/xxx


META-INF涓嬮渶瑕佹湁榪欎袱涓枃浠?spring-handlers鍙?/span>spring-schemas



鍛ㄧ 2012-03-15 15:21 鍙戣〃璇勮
]]>
Collections.sort 涓篖ist鎺掑簭http://www.tkk7.com/b1412/archive/2012/03/13/371818.html鍛ㄧ鍛ㄧTue, 13 Mar 2012 10:13:00 GMThttp://www.tkk7.com/b1412/archive/2012/03/13/371818.htmlhttp://www.tkk7.com/b1412/comments/371818.htmlhttp://www.tkk7.com/b1412/archive/2012/03/13/371818.html#Feedback0http://www.tkk7.com/b1412/comments/commentRss/371818.htmlhttp://www.tkk7.com/b1412/services/trackbacks/371818.html 1 package com.cloud.dm;
 2 
 3 import java.util.Collections;
 4 import java.util.Comparator;
 5 import java.util.List;
 6 import java.util.Map;
 7 
 8 import com.google.common.collect.Lists;
 9 import com.google.common.collect.Maps;
10 
11 public class TreeListTest {
12     public static void main(String[] args) {
13         List<Map<String, Object>> list = Lists.newArrayList();
14         Map<String, Object> map = Maps.newHashMap();
15         map.put("key", 201101);
16         Map<String, Object> map2 = Maps.newHashMap();
17         map2.put("key", 200010);
18         Map<String, Object> map3 = Maps.newHashMap();
19         map3.put("key", 201103);
20         list.add(map);
21         list.add(map2);
22         list.add(map3);
23         System.out.println(list);
24         Collections.sort(list, new Comparator<Map<String, Object>>() {
25             @Override
26             public int compare(Map<String, Object> o1, Map<String, Object> o2) {
27                 System.out.println(o1.get("key").toString().compareTo(o2.get("key").toString()));
28                 return o1.get("key").toString().compareTo(o2.get("key").toString());
29             }
30         });
31         System.out.println(list);
32     }
33 }
34 

鍛ㄧ 2012-03-13 18:13 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲精品老司机在线观看| 久久国产亚洲电影天堂| 三级黄色免费观看| 久久亚洲sm情趣捆绑调教| 国产无遮挡吃胸膜奶免费看| 亚洲五月午夜免费在线视频| 亚洲国产综合第一精品小说| 亚洲黄片手机免费观看| 3344永久在线观看视频免费首页 | 好湿好大好紧好爽免费视频| 久久久亚洲精品国产| 手机看片久久国产免费| 97人妻精品全国免费视频| 亚洲人成网站18禁止| 亚洲av成人无码久久精品| 成人免费视频国产| 2015日韩永久免费视频播放| 免费夜色污私人影院网站| 亚洲国产成人资源在线软件| 亚洲午夜无码片在线观看影院猛| 久久精品免费观看| 国产精品日本亚洲777| 亚洲精品中文字幕麻豆| 亚洲人成无码网站| 国产成人精品高清免费| 222www免费视频| a级毛片在线免费| 精品国产亚洲第一区二区三区| 好看的亚洲黄色经典| 四虎影视在线永久免费看黄| 成人黄色免费网址| 高清一区二区三区免费视频| 未满十八私人高清免费影院| 亚洲最大无码中文字幕| 亚洲美女aⅴ久久久91| 亚洲女久久久噜噜噜熟女| 亚洲国产成人久久综合碰| 午夜一级毛片免费视频| 免费观看AV片在线播放| 亚洲免费精彩视频在线观看| 手机看片国产免费永久|