自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 MySql 基础 sql语句

/**  本文章简要介绍mysql中常用的SQL语句*/1) mysql中添加sql    //备注:如果字段为int类型那么值则不需要加 ' '     INSERT INTO tjob(字段1,字段2,字段3) VALUES ('字段1对应的值','字段2对应的值','字段3对应的值')         2) mysql中修改sql  UPDATE 表名 SET 需要修改的字段名 = '值' ...

2018-06-01 17:14:53 232

原创 读取XML文件转成Document

废话不多说,直接上代码:public static void main(String[] args) {Document doc = JavaToCppXml.loadDocumentCppxml("E:/aa.xml");System.out.println(new GetLiveDetectorMessage().postaction(doc));}...

2018-05-19 17:23:06 2094

原创 js连接打印机 , 打印word,Excel

使用js连接打印机 , 打印word function doPrint(){   var href = "c:////ba.doc";if(href.indexOf("8080") != -1 || href.indexOf("8082") != -1){href = href.replace("8080","8083");href = href.replace("8082","

2018-05-19 17:21:56 4625

原创 json解析实例

例子:/** 解析查询设备接口*/ String str = "{"+ "\"code\":0,"+ "\"message\":\"查询成功\","+ "\"count\":\"总记录数\","+ "\"courtInfo\":{"+ "\"courtId\

2018-05-19 17:20:06 814

原创 File类删除有内容的文件夹

• /* •  * 删除有内容的文件夹:从最里面一直向外删除。建议千万不要删除硬盘上面有用的文件夹哦 •  * 方法思路 •  * 循环+递归 •  */  • import java.io.File;  •   • public class RemoveDir {  •   •     public static void main(String[] args) {  •         // ...

2018-05-19 17:07:24 773

原创 Document工具类拼接XML格式

拼接DocumentDocument document = DocumentHelper.createDocument();        document.setXMLEncoding("GBK");//设置编码格式        Element root = document.addElement("root");//拼接参数        root.addAttribute("type", ...

2018-05-19 17:05:51 1199

原创 HTML页面刷新

1.页面自动刷新:把如下代码加入<head>区域中<meta http-equiv="refresh" content="20">,其中20指每隔20秒刷新一次页面.2.页面自动跳转:把如下代码加入<head>区域中<meta http-equiv="refresh" content="20;url=http://www.abc.com&qu

2018-05-19 17:02:19 130

原创 JAVA远程遍历共享文件夹

• 遍历目录//URL注解: testcs 共享文件夹用户名,123456 共享文件夹密码,192.168.1.71 共享电脑IP  String url="smb://testcs:123456@192.168.1.71/save1/201612/测试二维码观看3/";mlog1.info("url---->"+url);SmbFile f = new SmbFile(url);if(f....

2018-05-19 16:58:44 2133

原创 java获取 当前年、半年、季度、月、日、小时 开始结束时间

import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class RemindDateUtils { /** * 获取  当前年、半年、季度、月、日、小时 开始结束时间 */ private final SimpleDateFormat shortSdf; privat...

2018-05-19 16:51:56 8917 2

原创 java String转int类型和int转String

/**字符串转整型*/String ss = "123";int i = Integer.parseInt(ss);/**int转String*/int number = 0123;String str = number+"";

2018-05-19 16:42:02 265

原创 java字符串截取

• 截取字符串第一位(两种方式) :1> String中的substring方法: String result = "923456";String ss = result.substring(0, 1);System.out.println(ss); 2> subSequence方法:String result = "923456";String ss = (String) resul...

2018-05-19 16:39:03 539

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除