
JAVA后台
zq33312757
这个作者很懒,什么都没留下…
展开
-
wsdl转java代码
wsdl格式转java代码原创 2023-01-12 11:17:20 · 436 阅读 · 0 评论 -
Log4j详解与实战
log4j是一个非常强大的log记录软件,下面我们就来看看在项目中如何使log4j。 首先当然是得到log4j的jar档,推荐使用1.2.X版,下载地址:http://logging.apache.org/log4j/1.2/download.html 我们先看一个最简单的示例:【示例1】项目结构:【注:由于这里的多个项目公用转载 2015-05-22 11:03:12 · 244 阅读 · 0 评论 -
上传图片
/** * 上传图片 */ public void upLoadMsg(String path,String filPath){ MultipartFile[] files=getFiles();//获取前台文件InputStream in=null;FileOutputStream out=null;try {if(null!=file原创 2015-08-13 10:42:07 · 299 阅读 · 0 评论 -
java 解析json格式数据
有时候可能会用到json格式进行数据的传输,那么怎么把接收到的数据解析出来呢? 下面介绍两种解析json数据的方法: 1、通过谷歌的Gson来进行解析: json数据:sTotalString = {"message":"success","result":[{"surveyid":"1","surveyname":"B"}{surveyid":"2","surveynam转载 2015-07-21 13:53:12 · 445 阅读 · 0 评论 -
一个简单的jQuery插件ajaxfileupload实现ajax上传文件例子
页面代码: ajaxfileupload.js"> function ajaxFileUpload(){ $.ajaxFileUpload( { url:'update.do?method=up转载 2015-08-18 16:07:19 · 249 阅读 · 0 评论 -
@OneToMany三种设置方式详解
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 4转载 2016-02-25 15:02:57 · 26204 阅读 · 0 评论 -
关于Xml文件读取
-----xml-----//src目录下的test.xml文件JDOM 方式读取路径:SAXBuilder sb = new SAXBuilder();Document doc = sb.build(new File("test.xml"));//Document doc = sb.build(this.class.get.ClassLoader().getResou原创 2016-05-05 23:27:21 · 291 阅读 · 0 评论 -
关于properties文件读取
-----读取-----load(InputStream inStream)这个方法可以从.properties属性文件对应的文件输入流中,加载属性列表到Properties类对象。Properties prop = new Properties();//读取属性文件test.properties(BufferedInputStream 输入流)InputStream in =原创 2016-05-05 23:52:08 · 310 阅读 · 0 评论 -
No grammar constraints (DTD or XML Schema) referenced in the document.
方法1关闭XML验证工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。方法2添加 内容如下http://www.w3.org/2002/xmlspec/dtd/2.10/x翻译 2016-12-18 03:12:21 · 357 阅读 · 0 评论