- 博客(13)
- 资源 (4)
- 收藏
- 关注
转载 Xml中SelectSingleNode方法中的xpath用法
最常见的XML数据类型有:Element, Attribute,Comment, Text.Element, 指形如Tom的节点。它可以包括:Element, Text, Comment, ProcessingInstruction, CDATA, and EntityReference. Attribute, 指在中的粗体部分。 Comment,指形如: 的节点。
2016-12-16 17:57:46 9118
转载 解决PKIX问题:unable to find valid certification path to requested target
异常报错详情javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer
2016-12-15 11:10:45 6986 1
原创 根据属性名和值来返回对象
public class XMLTest {public static void main(String[] args) { SAXReader saxReader = new SAXReader(); Document document; try { document = saxReader.read(new File(Dom4j.class.getC
2016-12-12 17:50:05 796
转载 dom4j的xpath查找xml的指定节点
递归遍历所有节点http://blog.csdn.net/sidihuo/article/details/47318723获取DocumentSAXReader saxReader = new SAXReader(); Document document = saxReader.read(FileUtil.getFileInputStream(fileName));查询El
2016-12-12 17:31:38 1542
转载 Java中List转换为数组,数组转List
ArrayList list=new ArrayList();String strings[]=(String [])list.toArray();这样写代码个人觉得应该没什么问题,编译也没有问题。可是具体运行的时候报异常,如下:Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object;但
2016-12-12 15:54:53 314
转载 Java WebService 简单实例
一、准备工作(以下为本实例使用工具)1、MyEclipse10.7.12、JDK 1.6.0_22 二、创建服务端1、创建【Web Service Project】,命名为【TheService】。 2、创建【Class】类,命名为【ServiceHello】,位于【com.hyan.service】包下。
2016-12-12 09:52:33 329
转载 Java调用net的webservice故障排除实战分享
前几天公司要接入国外公司的一个业务功能,对方是提供的net产生的webservice,阿堂在用cxf的wsdl2java命令生成客户端的测试代码时,出现了如下故障WSDLToJava Error: Thrown by JAXB: undefined element declaration 's:schema' 于是阿堂(网络时空)在网上查询大量资料和不断
2016-12-11 11:48:35 459
原创 eclipse 配置tomcat插件
插件安装很简单,只需要将下载的tomcatPluginV31解压缩到Eclipse安装目录的plugins目录下即可然后重启即可。 tomcatPluginV33.1网址:http://download.csdn.net/download/yunixiang/8433569
2016-12-10 22:05:17 576
转载 去除inline-block元素间间距的N种方法
一、现象描述真正意义上的inline-block水平呈现的元素间,换行显示或空格分隔的情况下会有间距,很简单的个例子: 间距就来了~~我们使用CSS更改非inline-block水平元素为inline-block水平,也会有该问题:.space a { display: inline-block; padding: .5em 1em;
2016-12-10 12:30:04 390
转载 webservice通信调用天气预报接口实例
一:环境搭建1:新建一个java project工程weatherInf2:引入相应的jar包activation.jaraxis-ant.jaraxis.jarcommons-discovery-0.2.jarcommons-logging-1.0.4.jarjaxrpc.jarlog4j-1.2.8.jarmail.jarsaaj.jar
2016-12-08 11:56:01 2558
转载 spring MVC配置详解
现在主流的Web MVC框架除了Struts这个主力 外,其次就是Spring MVC了,因此这也是作为一名程序员需要掌握的主流框架,框架选择多了,应对多变的需求和业务时,可实行的方案自然就多了。不过要想灵活运用Spring MVC来应对大多数的Web开发,就必须要掌握它的配置及原理。 一、Spring MVC环境搭建:(Spring 2.5.6 + Hibernate 3.2.0)
2016-12-08 11:46:08 255
转载 使用Dom4j解析XML
dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的。dom4j是一个非常非常优秀的Java XML API,具有性能优异、功能强大和极端易用使用的特点,同时它也是一个开放源代码的软件,可以在SourceForge上找到它. 对主流的Java XML API进行的性能、功能和易用性的评测,dom4j无论在那个方面都是非常出色的。如今你可以看到越来越
2016-12-07 17:28:16 380
转载 java调用webservice天气预报(SOAP请求的方式获取天气信息并解析返回的XML)
Java调用webservice天气预报(SOAP请求的方式获取天气信息并解析返回的XML)webservice网站为http://www.webxml.com.cn/WebServices/WeatherWS.asmx[java] view plain copy package webservice; import
2016-12-07 17:05:00 3674
HTTPCLIENT
2018-04-20
httpclient常用 jar包工具
2018-04-20
ssm整合实例
2017-03-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人