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

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

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

    lyyb2001

    只是為方便自己找記錄而已
    posts - 57, comments - 27, trackbacks - 0, articles - 5
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 ::  :: 管理

    2015年6月11日

    表單里面先對某一個控件有效性驗證(如手機號碼,當手機號碼輸入正確,才發送驗證碼,最后才是對表單驗證)

    <input type="text" id="mobile" name="mobile" placeholder="請輸入您的手機號碼" class="easyui-validatebox form-control" data-options="required:true,validType:'mobile'" />

    validateType自己擴展規則

    對單個輸入框的驗證為:$("#mobile").validatebox('isValid') 通過返回true

    posted @ 2017-09-19 15:59 skycity 閱讀(838) | 評論 (0)編輯 收藏

        public enum Section {
    KITTING(1),
    LABELKITTING(2),
    PACKING(3);

    private final int code;

    private Section(int code)
    {
    this.code=code;
    }
    public int getCode()
    {
    return this.code;
    }
    }

    Map<Integer,Section> MAP=Arrays.stream(Section.values()).collect(Collectors.toMap(s->s.code, section->section));

    posted @ 2017-07-11 11:40 skycity 閱讀(2765) | 評論 (0)編輯 收藏

    Optional<MaterialPaneModel> maxMaterial = list.stream().max(Comparator.comparingInt(MaterialPaneModel::getMaterialQty));

    posted @ 2017-07-06 15:43 skycity 閱讀(4016) | 評論 (0)編輯 收藏

    try{

    JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();

    factoryBean.getInInterceptors().add(new LoggingInInterceptor());

    factoryBean.getOutInterceptors().add(new LoggingOutInterceptor());

    factoryBean.setServiceClass(AutoPackServiceIntf.class);

    factoryBean.setAddress("http://10.241.0.105:17000/TEST");

    AutoPackServiceIntf factory = (AutoPackServiceIntf) factoryBean.create();

    Client client = ClientProxy.getClient(factory);

    HTTPConduit conduit = (HTTPConduit) client.getConduit();

    HTTPClientPolicy policy = new HTTPClientPolicy();

    policy.setConnectionTimeout(30000); //連接超時時間

    policy.setReceiveTimeout(120000); //請求超時時間.

    conduit.setClient(policy);

    System.out.println(factory.getFirstUnitCramp("1"));

    }catch(WebServiceException ex){

    long l2 = System.currentTimeMillis();

    System.out.println((l2-l1)+"ms");

    System.out.println("連接異常");

    }

    posted @ 2016-12-08 14:19 skycity 閱讀(295) | 評論 (0)編輯 收藏

    通過Application

    ApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext();

         classPath = classPathXmlApplicationContext.getResource("classpath:config.properties").getFile().getPath();

            if(classPath.indexOf("WEB-INF")>0){

                classPath = classPath.substring(0,classPath.indexOf("WEB-INF")+7)+"/classes/"+xmlFile;

            }

     

    posted @ 2016-11-03 18:17 skycity 閱讀(245) | 評論 (0)編輯 收藏

    @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    Map<Integer,Map<String,List<DocLotDetail>>> amp                            docLotDetailLists.parallelStream().collect(Collectors.groupingBy(DocLotDetail::getGroupOrder,Collectors.groupingBy(DocLotDetail::getBaseValueName)));





    amp.forEach((key,value)->{

            System.out.println(key);

             value.forEach((key2,value2)->{

                System.out.println(key2);

            });

    });

    最終返回的結果

    2

    隨機光盤

    3

    資料袋附件

    4

    資料盒附件

    5

    包裝輔料

    8

    前工序物料






    @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    posted @ 2016-03-22 16:14 skycity 閱讀(11374) | 評論 (0)編輯 收藏

    cxf webservice客戶端程序在eclipse里面運行的好好的,但是一旦用mvn assembly:assembly將依賴和主代碼打成一個可運行的jar時,調用就會出現如下錯誤:


    Exception in thread "main" org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve a binding for null

    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:352)

    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:259)

    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:144)

    at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)

    at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157)

    at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)

    at com.nabf.start.NABFClient.main(NABFClient.java:30)

    Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/soap/ registered.

    at org.apache.cxf.bus.managers.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:93)

    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:339)

    ... 6 more

    而用mV clean package dependency:copy-dependencies -DoutputDirectory=target/lib啟動的時候加載lib包下所有的文件也不會出現錯誤

    解決辦法:在pom.xml的build中添加如下,然后執行mV clean package,打出來的包就含有依賴包,且問題解決。原因?

                                <plugin>

    <groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-shade-plugin</artifactId>

    <version>1.6</version>

    <configuration>

    <archive>

    <manifest>

    <addClasspath>true</addClasspath>

    <mainClass>com.nabf.start.NABFClient</mainClass>

    </manifest>

    </archive>

    </configuration>

    <executions>

    <execution>

    <phase>package</phase>

    <goals>

    <goal>shade</goal>

    </goals>

    <configuration>

    <transformers>

    <transformer

    implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">

    <resource>META-INF/cxf/bus-extensions.txt</resource>

    </transformer>

    </transformers>

    </configuration>

    </execution>

    </executions>

    </plugin> 




    @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    posted @ 2016-03-04 15:02 skycity 閱讀(2630) | 評論 (0)編輯 收藏

    @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    MessageFormat.format(str,str1,str2,str3)

    用于替換str中{0},{1},{2}這樣的結構

    String.format(str,str1,str2,str3)

    用于匹配str中%s的結構

    posted @ 2015-06-11 16:10 skycity 閱讀(199) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 色婷婷精品免费视频| 国产成人免费ā片在线观看| 偷自拍亚洲视频在线观看99| 97se亚洲综合在线| 国产成人亚洲精品91专区手机| 成人毛片18女人毛片免费| 免费国产污网站在线观看15| 99热在线日韩精品免费| 一级特黄aaa大片免费看| 亚洲精品无码久久久久YW| 亚洲视频在线观看网站| 亚洲精品国产精品乱码在线观看 | 亚洲国产av无码精品| 97人伦色伦成人免费视频 | 午夜亚洲国产理论秋霞| 国产亚洲精品高清在线| 国产一区二区三区在线免费| 毛片A级毛片免费播放| 91香蕉视频免费| 亚欧免费视频一区二区三区| 日本免费中文视频| 3344在线看片免费| 最好免费观看高清在线| 久久成人18免费网站| a级毛片免费观看在线| 乱淫片免费影院观看| 色屁屁在线观看视频免费| 亚洲精品色在线网站| 日韩欧美亚洲国产精品字幕久久久| 亚洲AV无码一区二区三区人| 色婷五月综激情亚洲综合| 亚洲va成无码人在线观看| 亚洲国产成+人+综合| 亚洲精品亚洲人成在线播放| 精品亚洲成在人线AV无码| 亚洲国产日韩在线人成下载| 亚洲乱码无限2021芒果| 77777午夜亚洲| 亚洲老熟女五十路老熟女bbw| 亚洲国产精品无码久久久秋霞1| 亚洲AV永久无码精品一福利|