上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: 配置文件: /** * 删除轮播图,实质是修改状态 */ @Transactional public Integer removeFocusImg(MallFocusImg record) { try { MallFocus mallFocus = new MallFocus(); mallFocus.setPageId(record.getId()); mallFocus.setIsdel((byte) 1); record.setIsdel((byte) 1); // 首先验证是否存在 int c = focusDAO.... 阅读全文
posted @ 2014-03-06 13:26 prison 阅读(225) 评论(0) 推荐(0) 编辑
摘要: package com.xzm.util.webservice;import java.io.IOException;import java.io.InputStream;import java.io.UnsupportedEncodingException;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import java.util.ArrayList;import java.util.List;import javax.xml.parsers.Document 阅读全文
posted @ 2014-03-03 17:44 prison 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: 1、过滤包含特殊字符的字段:select *from 表whereFIND_IN_SET(值,字段)select *from 表where ! FIND_IN_SET(值,字段)2、过滤字段中的字符串包含特殊字符:!LOCATE('约炮',content) 阅读全文
posted @ 2014-03-02 13:30 prison 阅读(4674) 评论(1) 推荐(0) 编辑
摘要: 可以添加代码如下: 1 WebClient client = new WebClient(); 2 3 client.setIncorrectnessListener(new SilentIncorrectnessListener()); 4 //js异常控制主要的一步 5 client.getOptions().setJavaScriptEnabled(false); 6 client.setCssErrorHandler(new QuietCssErrorHandler()); 7 client.getOptions().setThrowExceptionOnScriptError(fa. 阅读全文
posted @ 2014-02-28 16:35 prison 阅读(734) 评论(0) 推荐(0) 编辑
摘要: package com.xzm.util.task;import java.io.IOException;import java.net.URL;import java.util.ArrayList;import java.util.Date;import java.util.List;import java.util.Timer;import java.util.TimerTask;import java.util.logging.Level;import org.junit.Test;import org.junit.runner.JUnitCore;import org.junit.ru 阅读全文
posted @ 2014-02-28 16:32 prison 阅读(3137) 评论(0) 推荐(0) 编辑
摘要: tomcat配置: ngnix配置:server { listen 80; server_name wechat.surroundlife.com; #charset koi8-r; #access_log /zhanghongyan/surroundinx/log/host.access.log main; #root ar/www/surroundlife/; #root /usr/tomcat6/webapps//; location / { index index.html index... 阅读全文
posted @ 2014-02-25 17:17 prison 阅读(185) 评论(0) 推荐(0) 编辑
摘要: //限制textarea的字数 window.onload=function(){ var maxlimit = 50; document.getElementById('remark').onkeydown=function(){ if(this.value.length>maxlimit){ this.value = this.value.substring(0, maxlimit); } } } 阅读全文
posted @ 2014-02-24 14:49 prison 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1、spring自带的加密算法,可以设置base64,也可以用盐值,例如:// MD5加密类 Md5PasswordEncoder md5 = new Md5PasswordEncoder(); // 密码密文 return md5.encodePassword(str, null);2、下面是关于spring security的加密文章。Acegi 对于密码提供三种方式:明文及不采用任何加密方式、MD5加密方式、哈希算法加密方式。只需要在DAO的认证管理器中分别加入以下对应配置:第一种:不使用任何加密方式的配置Java代码 ... 阅读全文
posted @ 2014-02-24 13:55 prison 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: 1、jar包支持。需要添加spring-context-support和quartz.jar Spring定时任务 0/10 * * * * ? 以下是网上摘抄的一些说明:字段允许值允许的特殊字符秒 0-59 , - * /分 0-59 , - * /小时 0-23 , - * /日期 1-31 ... 阅读全文
posted @ 2014-02-24 10:31 prison 阅读(411) 评论(0) 推荐(0) 编辑
摘要: %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n ${catalina.base}/logs/carmall-manager.log ${catalina.base}/logs/carmall-manager.%d{yyyy-MM-dd}.log %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 阅读全文
posted @ 2014-02-21 11:10 prison 阅读(28274) 评论(0) 推荐(3) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页