<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    朱杰兵blog

    jonhney'blog
    posts - 140, comments - 1, trackbacks - 0, articles - 0

         摘要: package com.what21.service.demo02; import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.OutputStream;import java.net.HttpURLConnection;import java.net.URL; public cl...  閱讀全文

    posted @ 2016-04-26 13:06 朱杰兵 閱讀(262) | 評論 (0)編輯 收藏

    http://www.cnblogs.com/siqi/p/3475222.html
    import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; /**  * 通過UrlConnection調用Webservice服務  *  */ public class App {      public static void main(String[] args) throws Exception {         //服務的地址         URL wsUrl = new URL("http://192.168.1.100:6789/hello");                  HttpURLConnection conn = (HttpURLConnection) wsUrl.openConnection();                  conn.setDoInput(true);         conn.setDoOutput(true);         conn.setRequestMethod("POST");         conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");                  OutputStream os = conn.getOutputStream();                  //請求體         String soap = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:q0=\"http://ws.itcast.cn/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" +                        "<soapenv:Body> <q0:sayHello><arg0>aaa</arg0>  </q0:sayHello> </soapenv:Body> </soapenv:Envelope>";                  os.write(soap.getBytes());                  InputStream is = conn.getInputStream();                  byte[] b = new byte[1024];         int len = 0;         String s = "";         while((len = is.read(b)) != -1){             String ss = new String(b,0,len,"UTF-8");             s += ss;         }         System.out.println(s);                  is.close();         os.close();         conn.disconnect();     } }

    posted @ 2016-04-25 17:14 朱杰兵 閱讀(118) | 評論 (0)編輯 收藏

    isNotNull和isEmpty區別
    <= 和>=需要關鍵字替代

    posted @ 2016-04-14 10:13 朱杰兵 閱讀(75) | 評論 (0)編輯 收藏

    String time = DateUtils.formatDate(date, "yyyy-MM-dd HH:mm:ss");
    月MM大寫,分鐘mm小寫,HH小時大寫

    posted @ 2016-04-13 14:50 朱杰兵 閱讀(96) | 評論 (0)編輯 收藏

    t.dpt_time between to_date('2015/01/01','yyyy/mm/dd') and   
      to_date('2015/12/31','yyyy/mm/dd')
    將取不到12月31日0點以后的數據
    解決辦法 trunc一下trunc(t.dpt_time)


    posted @ 2016-04-13 13:23 朱杰兵 閱讀(103) | 評論 (0)編輯 收藏

    select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;
    select to_char(sysdate,'yyyy-mm-dd hh24:mm:ss') from dual;

    'yyyy-mm-dd hh24:mi:ss':mi 分鐘  'yyyy-mm-dd hh24:mm:ss':mm 月份 其中兩個都是月份


    posted @ 2016-03-07 11:12 朱杰兵 閱讀(97) | 評論 (0)編輯 收藏

    window-preference-java-code style-clean up 和formatter     導入
    見worksoftware formate by eclipse plugin

    posted @ 2016-01-14 16:39 朱杰兵 閱讀(117) | 評論 (0)編輯 收藏

    // File file=new File("F:\\top50.png");D:\worksoftware\apache-tomcat-7.0.27\apache-tomcat-7.0.27\webapps\jzbz\
    File file=new File(path+"\\images\\ceairLogo.png");

    HttpServletRequest request = (HttpServletRequest) Executions.getCurrent().getNativeRequest();
    String path = request.getSession().getServletContext().getRealPath("/");

    posted @ 2016-01-14 10:53 朱杰兵 閱讀(95) | 評論 (0)編輯 收藏

    varchar2(10) 可以存5個中文,10個字母

    posted @ 2015-12-15 15:31 朱杰兵 閱讀(113) | 評論 (0)編輯 收藏

    如果讓eclipse識別*.zul是xml格式文件呢:Window -->Preferences -->Generals --> Content Type -->Text --> xml --> 點擊add按鈕 -->輸入*.zul -->Ok      這樣*.zul擴展的文件eclipse會識別其為xml文件格式

    posted @ 2015-10-22 09:41 朱杰兵 閱讀(413) | 評論 (0)編輯 收藏

    僅列出標題
    共14頁: First 上一頁 4 5 6 7 8 9 10 11 12 下一頁 Last 
    主站蜘蛛池模板: 成人毛片免费观看视频大全| 免费国产在线观看| 亚洲最大无码中文字幕| 国产成人无码区免费A∨视频网站| 思思久久99热免费精品6| 亚洲狠狠综合久久| 成人免费无码大片A毛片抽搐色欲| 日本精品久久久久久久久免费 | 国产一级一毛免费黄片| 亚洲福利电影在线观看| 亚洲成?Ⅴ人在线观看无码| 亚洲免费视频网站| 国产亚洲精品2021自在线| 亚洲av无码精品网站| 在线免费视频一区二区| 日韩av无码免费播放| 色婷婷六月亚洲综合香蕉| 久久精品国产亚洲AV麻豆王友容| 成人毛片免费观看视频在线| 国产成人免费AV在线播放| 亚洲AV色无码乱码在线观看| 亚洲欧洲在线观看| 亚洲男女内射在线播放| 成人影片麻豆国产影片免费观看 | 中国毛片免费观看| 亚洲丰满熟女一区二区哦| 久久精品a亚洲国产v高清不卡| 免费观看日本污污ww网站一区| 91免费国产自产地址入| 99久久精品毛片免费播放| MM1313亚洲国产精品| 亚洲xxxxxx| 久久久久久亚洲Av无码精品专口| 亚洲午夜日韩高清一区| 日韩在线免费电影| 美女网站免费福利视频| 99蜜桃在线观看免费视频网站| 国产精品无码永久免费888| 精品国产亚洲AV麻豆| 日韩亚洲国产高清免费视频| 亚洲色图校园春色|