`
文章列表
<!-- sessionListener --> <listener> <listener-class>com.acca.comm.SessionListener</listener-class> </listener>   因为 Servlet2.1之后不支持SessionContext 里面getSession(String id) 方法。 但是,我们可以通过HttpSessionListener监听器和全局静态map自己实现一个SessionContext   ...
public String upload(){ InputStream is=null; OutputStream os=null; try { is=new FileInputStream(file); String path=ServletActionContext.getServletContext().getRealPath("/upload"); File f=new File(path, this.fileF ...
public String upload(){ String path=ServletActionContext.getServletContext().getRealPath("/upload"); File saveFile = new File(path, this.getFileFileName()); // 判断是否存在同名文件 if (saveFile.exists()) { return "false"; ...
@Transactional(noRollbackFor=RuntimeException.class)方法事务说明@Transactional(RollbackFor=Exception.class)@Transactional(readOnly=true)@Transactional(timeout=100)@Transactional(isolation)数据库的隔离级别{   Read Uncommited:读取未提交的数据(会出现脏读 不可
        流程定义(ProcessDefinition)基于有向图对业务进行描述,图是由节点(活动)和转移(Transition)构成的,节点是有类型的, 节点的类型决定了到达该节点做的事情,不同的节点做的事情不一样,转移描述了一个流 ...
<%@ page language="java" contentType="text/html; charset=utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link href="autocomplete/jquery.autocom ...

MD5加密的实现类

    博客分类:
  • java
互相探讨,请指正 public class Md5Util { private Md5Util(){}; public final static String MD5(String s) { try { byte[] btInput = s.getBytes(); MessageDigest mdInst = MessageDigest.getInstance("MD5"); mdInst.update(btInput); byte[] md = mdInst.digest(); StringB ...
2010-10-19 18:27:22 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn   警告: Error setting expression 'nnew.nTitle'  with value  '[Ljava.lang.String;@df804e'    ognl.NoSuchPropertyException: com.center.vo.News_Table.nTitle [java.lang.IllegalAccessException: Class ognl.OgnlRun ...
  我这边有个基于ssh+jquery-easyUI实现的例子,由于文件太大不能上传,先传两张图片上来,大家看一下,有需要源码的话,请留邮箱,我会尽快给你发过去的,大家互相学习!!!   <%@ page language="java" contentType="text/html; charset=utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/ ...
<%@ page language="java" contentType="text/html; charset=utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" conte ...
public class User { private String id; private String userName; private IDCard card; /** * @return the card */ public IDCard getCard() { return card; } /** * @param card the card to set */ public void setCard(IDCard card) ...
主键关联不需要额外的表字段;如果两行是通过这种一对一关系相关联的,那么这两行就共享同样的主关键字值。 所以如果你希望两个对象通过主键一对一关联,你必须确认它们被赋予同样的标识值! public class User { private String id; private String userName; private IDCard card; /** * @return the card */ public IDCard getCard() { return card; ...
大家互相学习,有什么不妥的地方希望指正 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmln ...
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.spri ...
public abstract class BaseDao<E extends BaseEntity> extends JpaDaoSupport { /** * 创建实体 * * @param entity */ public void insert(E entity) { entity.setCreateTime(DateTimeUtil.currentTime()); getEntityManager().persist(entity); } }   @ ...
Global site tag (gtag.js) - Google Analytics