自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Gson转化为对象

import com.google.gson.Gson;public class Main { public static void main(String[] args) { System.out.println("Hello World!"); String jsonStr1 = "{\"id\":\"1\",\"brand\":\"dazhon

2017-03-24 18:46:36 856

原创 FastJson转为对象

import com.alibaba.fastjson.JSON;public class Main { public static void main(String[] args) { System.out.println("Hello World!"); String jsonStr1 = "{\"id\":\"1\",\"brand\":\"d

2017-03-24 18:35:05 817

原创 java使用redis

import redis.clients.jedis.Jedis;public class Main { public static void main(String[] args) { System.out.println("Hello World!"); Jedis jedis = new Jedis("localhost");

2017-03-12 14:35:16 348

转载 获取手机IP地址

如果手机连接的是wifi,获取到是192.168.1.1这种格式的地址,如果连接的是移动网络,获取到的是10.109.51.213这种格式。 public String getHostIP() { String hostIp = null; try { Enumeration nis = NetworkInterface.get

2017-03-11 00:02:42 391

原创 mysql执行两条update语句

执行两条update语句,没有join关联时update dp_auto_group_price dagp ,dp_auto_group dag set dagp.is_pub = 0 ,dag.status = 1 where dagp.id = 260 and dag.id = 101;-- 正确update dp_auto_group_price dagp ,dp_auto

2017-03-10 10:09:04 3408

原创 redis学习

Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\Users\liuyazhou>cd c:/redisc:\redis>redis-cli.exe -h 127.0.0.1 -p 6379127.0.0.1:6379>127.0.0.1:6379> set key1 value1

2017-03-08 10:55:21 361

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除