![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
woaixuweisi
一个很懒的人
展开
-
MD5加密
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.security.MessageDigest; /** * */ public final class MD5 { private static Logger logger = LoggerFactory.getLogger(...原创 2011-05-04 14:40:31 · 120 阅读 · 0 评论 -
对象拷贝,用于更新时
import org.apache.log4j.Logger; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.security.AccessController; import java.security.PrivilegedAction; public class O...原创 2011-05-04 14:43:34 · 85 阅读 · 0 评论 -
重写gwt的RemoteServiceServlet,将GWT所有RPC的请求拦截下来交给SPRING来处理
package com.jme.help.gwt; import javax.servlet.http.HttpServletRequest; import org.apache.log4j.Logger; import org.springframework.web.context.WebApplicationContext; import org.springframework...原创 2011-07-02 11:08:07 · 280 阅读 · 0 评论 -
一段内存分页代码
public static Page<SysTreeNode> findChildrenByNodeIdPage(Integer page, Integer limit , int parentId){ if(page == null){ page = 1;//页数 } if(limit == null){...原创 2011-12-21 09:21:37 · 73 阅读 · 0 评论 -
string对{}和map的替换符的一段代码(描述得不好,就是把map的值替换到{}里面)
import java.util.Map; public class StringFormatUtil { private StringFormatUtil(){} public static String substitute(String tepl, Map<String, String> params) { String tex...原创 2011-12-02 11:29:43 · 275 阅读 · 0 评论