摘要: mvn install:install-file -Dfile=jar包本地地址 -DgroupId= -DartifactId= -dversion= -Dpackaging=jar 将jar发送到中央仓库 需要权限 在setting.xml的servers中配置 mvn deploy:deploy-file -Dmaven.test.skip=true -DgroupId= -D... 阅读全文
posted @ 2019-10-31 16:05 石洋 阅读(120) 评论(0) 推荐(0) 编辑
摘要: /** * 将对象转为流程XML */ public static String objtoxml(Object obj) { // 创建输出流 StringWriter sw = new StringWriter(); try { // 利用jdk中自带的转换类实现 JAXBContext context = JAXBContext.newInstance(obj.getClass()); Ma 阅读全文
posted @ 2019-10-28 11:01 石洋 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 复制java对象 阅读全文
posted @ 2019-08-14 18:26 石洋 阅读(657) 评论(0) 推荐(0) 编辑
摘要: function onpost_Echo_ndkh2(serverURL,fileType,pickerID,listName,doneback,type){//上传路径,上传文件分类,选择框ID,文件列表ID,成功后向doneback的父级插入文件图标,文件类型 var uploader = WebUploader.create({ // swf文件路径 ... 阅读全文
posted @ 2019-07-31 18:34 石洋 阅读(3994) 评论(0) 推荐(0) 编辑
摘要: 在ajax方法前加$.ajaxSettings.async = false; 在ajax方法后加$.ajaxSettings.async = true; 如: $.ajaxSettings.async = false; $.post("", data, function(result) { },"json"); $.ajaxSettings... 阅读全文
posted @ 2019-06-24 18:47 石洋 阅读(1376) 评论(0) 推荐(0) 编辑
摘要: jquery-3.2.1.min.js 、jquery-ui.min.js 、jquery-ui.css $("#dwmc").autocomplete({ source: function( request, response ) { var dwmcCode1 = $("#dwmcCodeArg").val(); var ishzyx = $(... 阅读全文
posted @ 2019-05-09 15:23 石洋 阅读(554) 评论(0) 推荐(0) 编辑
摘要: package com.controller.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class DateUtil { public static Dat... 阅读全文
posted @ 2019-05-07 18:57 石洋 阅读(135) 评论(0) 推荐(0) 编辑
摘要: public static List getMonthBetween(Date minDate, Date maxDate) throws Exception { ArrayList result = new ArrayList(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");//格式化为年... 阅读全文
posted @ 2019-05-07 18:55 石洋 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: 验证数字的正则表达式集 验证数字:^[0-9]*$ 验证n位的数字:^\d{n}$ 验证至少n位数字:^\d{n,}$ 验证m-n位的数字:^\d{m,n}$ 验证零和非零开头的数字:^(0|[1-9][0-9]*)$ 验证有两位小数的正实数:^[0-9]+(.[0-9]{2})?$ 验证有1-3位小数的正实数:^[0-9]+(.[0-9]{1,3})?$ 验证非零的正整数... 阅读全文
posted @ 2019-05-06 11:54 石洋 阅读(182) 评论(0) 推荐(0) 编辑
摘要: content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核 阅读全文
posted @ 2019-04-15 11:10 石洋 阅读(96) 评论(0) 推荐(0) 编辑