`
文章列表

Jquery打印

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><%@ page import="java.util.*"%><html> <head>  <title></title> </head> <script type="text/javascript" src="jquery-1 ...
select DATE_SUB(curdate(),INTERVAL 7 DAY),curdate(),DATE_ADD(curdate(),INTERVAL 7 DAY)
在实体类上 加上注解@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
public class JsonHelp{ public static Map getMapFromJson(String jsonString) {  setDataFormat2JAVA();  JSONObject jsonObject = JSONObject.fromObject(jsonString);         Map map = new HashMap();         for(Iterator iter = jsonObject.keys(); iter.hasNext();){             String key = (String)iter.nex ...
很简单的一句,记录下来以防忘记。 ResourceBundle resource=ResourceBundle.getBundle("upload")
转:http://www.cnblogs.com/evon168/archive/2010/10/29/1863059.html

mysql表复制

insert into sys_operator(uid,username,password,email,roleIds,registerTime) select id,name,password,email,role_id,now() from admininfo
hibernate tools插件:http://download.jboss.org/jbosside/updates/stable 里面有很多但只选择Hibernate Tool
public class HttpRequestDeviceUtils { /**Wap网关Via头信息中特有的描述信息*/    private static String mobileGateWayHeaders[]=new String[]{    "ZXWAP",//中兴提供的wap网关的via信息,例如:Via=ZXWAP GateWayZTE Technologies,    "chinamobile.com",//中国移动的诺基亚wap网关,例如:Via=WTP/1.1 GDSZ-PB-GW003-WAP07.gd.chinamobile ...
今天启动Eclipse控制台报错,错误信息如下: 2015-5-20 10:07:02 org.apache.jasper.compiler.TldLocationsCache tldScanJar 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded ...
异常:java.lang.OutOfMemoryError: PermGen space 解决方法: 手动设置MaxPermSize大小修改TOMCAT_HOME/bin/catalina.sh 在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行: JAVA_OPTS="-server -XX:PermSize=64M -XX:MaxPermSize=128m 
<rule>        <note>test</note>        <from>^/test/([0-9]*)/([\sA-Z0-9\u4e00-\u9fa5]*).html$</from>        <to>/test.htm?id=$1&amp;keyword=$2</to></rule>
@Scope("prototype")@Namespace(value = "/")public class ScalaAction extends BaseAction{@Action(value = "/sale")public String sale(){}} 如果遇到找不到页面问题。1.只能支持JDK1.6的。2.修改Project Facets的JAVA版本为1.6
前几天公司需要选择市区然后获取邮编,网上查找了一下没有或者文不对题,所以自己写了个。 使用 HttpClient 抓取数据,然后使用Jsoup解析数据。我把它打包了,调用代码:CodeManager.getZipCode();返回的格式是Map<String, String[]>,抓取的网址:http://www.ip138.com/post。

下载PDF代码

public void downLoad(String filePath, HttpServletResponse response, boolean isOnLine) throws Exception {        File f = new File(filePath);        if (!f.exists()) {            response.sendError(404, "File not found!");            return;        }        BufferedInputStream br = new Buff ...
Global site tag (gtag.js) - Google Analytics