`
雷诺阿
  • 浏览: 17562 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
import java.security.Key;import java.security.SecureRandom;import javax.crypto.Cipher;import javax.crypto.KeyGenerator;import sun.misc.BASE64Decoder;import sun.misc.BASE64Encoder;/** * @author * 加密/解密 公共类 */@SuppressWarnings("restriction")public class DESUtils  {      private static Key ke ...
  // 对android和ios设备发送 JPushClient jpush = new JPushClient(masterSecret, appKey);   // 对android和ios设备发送,同时指定离线消息保存时间 JPushClient jpush = new JPushClient(masterSecret, appKey, timeToLive);   // 指定某种设备发送 JPushClient jpush = new JPushClient(masterSecret, appKey, DeviceEnum.Andr ...

极光推送

    博客分类:
  • java
注:需要去官网下载 jpush-client-3.2.3.jar /** * 极光推送工具类 * @author why * */ @SuppressWarnings("all") public class JPushAllUtil { private final static String appKey = ""; private final static String masterSecret = ""; /** * 测试方法 */ public static void ma ...
package com.html; import java.io.BufferedReader; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import ...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content = "text/html,charset=utf-8"> <title>time test</title> <style type="text/css"> .time{font-size:50px;color:red;} </style>   <script type=&quo ...
<div class="iteye-blog-content-contain" style="font-size: 14px"> 实现简单的互相发信息 /* * 客户端 */ public class Client {     private static final int PORT = 8089;     private static final String HOST = "127.0.0.1";     public static void main(String[] args){         System ...
1、测试需要导入的jar包:       ① Junit4.jar       ② Spring-Test 2、添加SpringTestBase类:   import org.junit.runner.RunWith;  import org.springframework.test.context.ContextConfiguration;  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;  import org.springframework.test.context.transact ...
<script charset="utf-8" type="text/javascript" src="http://c.csdnimg.cn/pubfooter/js/tracking.js"></script><script type="text/javascript">// <![CDATA[ var protocol = window.location.protocol; document.write('<script typ ...
  <!-- saved from url=(0048)http://code.ciaoca.com/jquery/validation_engine/ -->   jQuery Validation Engine 表单验证 - 前端开发仓库 <script type="text/javascript" src="/admin/blogs/jQuery%20Validation%20Engine%20%E8%A1%A8%E5%8D%95%E9%AA%8C%E8%AF%81%20-%20%E5%89%8D%E7%AB%AF%E5%BC%80 ...
自定义jsp标签:        step1,写一个java类,继承SimpleTagSupport类。       step2,在doTag方法里面,编写处理逻辑。       step3,在.tld文件里面,描述标签。          <body-content>empty</body-content>:          empty: jsp标签没有标签体。                     <body-content>scriptless</body-content>          scriptless:jsp标签可以有标签 ...
package cn.leinuoa.collection; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @author Leinuoa * 在控制台输入 ...
4种方法,都是四舍五入,例:[size=small][size=x-small][/size][/size] import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; public class format {     double f = 111231.5585;     public void m1() {         BigDecimal bg = new BigDecimal(f);         double f1 = bg.setScale(2, Bi ...
Global site tag (gtag.js) - Google Analytics