摘要: private void createReplyTree(List commentReplyVoList, List replyList) { if (org.apache.commons.collections.CollectionUtils.isNotEmpty(replyList)) { List leftReplyList = new... 阅读全文
posted @ 2015-12-18 13:50 _ylsn 阅读(241) 评论(0) 推荐(0) 编辑
摘要: package com.dbn.utils;import java.io.UnsupportedEncodingException;import java.net.URLDecoder;import java.net.URLEncoder;import org.apache.commons.code... 阅读全文
posted @ 2015-12-16 13:44 _ylsn 阅读(571) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE `znt_post` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键id', `title` VARCHAR(500) NULL DEFAULT NULL COMMENT '标题' COLLATE 'utf8mb4 阅读全文
posted @ 2015-12-15 18:14 _ylsn 阅读(312) 评论(0) 推荐(0) 编辑
摘要: function publishPost(postId){ var _csrf = jQuery('*[name="_csrf"]').val(); jQuery.ajax({ type:"POST", url:"/service/post/publishPost", data:{"postId": 阅读全文
posted @ 2015-12-15 18:08 _ylsn 阅读(162) 评论(0) 推荐(0) 编辑
摘要: package test;import java.io.BufferedReader;import java.io.File;import java.io.FileReader;import java.io.IOException;import java.util.ArrayList;import ... 阅读全文
posted @ 2015-12-15 17:57 _ylsn 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 比对版本号工具:package com.dbn.common.util;import com.dbn.common.checker.Checker;import com.dbn.common.vo.BizVo;import com.dbn.common.vo.ZntRequest;import ja... 阅读全文
posted @ 2015-12-15 17:53 _ylsn 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 基本格式 :* * * * * command分 时 日 月 周 命令第1列表示分钟1~59 每分钟用*或者 */1表示第2列表示小时1~23(0表示0点)第3列表示日期1~31第4列表示月份1~12第5列标识号星期0~6(0表示星期天)第6列要运行的命令crontab文件的一些例子:30 21 * * * /usr/local/etc/rc.d/lighttpd restart上面的例子表示每晚的21:30重启apache。45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart上面的例子表示每月1、10、22日的4 :... 阅读全文
posted @ 2014-02-13 17:21 _ylsn 阅读(193) 评论(0) 推荐(0) 编辑
摘要: MySQL命令行导出数据库: 1,进入MySQL目录下的bin文件夹:cd MySQL中到bin文件夹的目录 如我输入的命令行:cd C:\Program Files\MySQL\MySQL Server 4.1\bin (或者直接将windows的环境变量path中添加该目录) www.2cto. 阅读全文
posted @ 2014-01-24 09:27 _ylsn 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 首先,确保你的JAVA和JBOSS的环境变量配置正确然后,在myeclipse中,window->preferences->myeclipse->servers->JBOSS->JBOSS6.X->paths,在appendtoclasspath里ADDDIR,把“JBOSS安装目录\bin”添加进去就OK了(不能添加安装目录,必须添加bin) 阅读全文
posted @ 2014-01-24 06:09 _ylsn 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 问题:电脑突然断电,myeclipse非正常关闭,“Package Explorer”非正常显示,出现错误“Could not create the view: An unexpected exception was thrown.”。但是项目中的文件可以通过命令查看。 解决方式:关闭myeclipse -- 删除文件PS:在myeclipse项目默认存放目录“.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs” -- 重新启动myeclipse即可 阅读全文
posted @ 2014-01-22 21:58 _ylsn 阅读(259) 评论(0) 推荐(0) 编辑