LiJun
2018-11-16 af57cd2f73a05174bc8df1247bf80cc024a0b603
gx_tieta/src/com/fgkj/actions/ActionUtil.java
@@ -35,6 +35,8 @@
   
   
   
   public String key;                                                      //跨域识别码
   /*
    * 获取HttpServletRequest
    */
@@ -246,9 +248,6 @@
    return new   SimpleDateFormat( "yyyy-MM-dd HH:mm:ss").format(c.getTime());
    }
    public static void main(String[] args) {
      System.out.println(ActionUtil.EncryptionMD5("vip"));
   }
    
    //获取时间的年份
    public static int getDateYear(Date date){
@@ -485,4 +484,15 @@
      res.setHeader("Access-Control-Allow-Headers", "X-Requested-With,content-type,token");
      res.setHeader("Access-Control-Allow-Methods", "GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH");
    }
   public void setKey(String key) {
      this.key = key;
   }
   public static void main(String[] args) {
       String str = "福光电子";
       System.out.println(EncryptionMD5(EncryptionMD5(str)));
   }
}