Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1494356
  • 博文数量: 329
  • 博客积分: 2773
  • 博客等级: 少校
  • 技术积分: 4219
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 14:17
个人简介

淡定从容,宁静致远

文章分类

全部博文(329)

文章存档

2016年(4)

2015年(50)

2014年(68)

2013年(45)

2012年(162)

发布时间:2015-12-09 15:41:56

1.在线打开Base64的编码器将图片编码成Base64例如:我在网上用的图像编码器Base64的地址:http://www.vgot.net/test/image2base64.php2.将需要编码的图片编码成 Base64 代码。3.在html文件图片所在的src=""中添加data:image/jpg;base64,(注:这里是jpg格式,你可以改写成你编码图片的类型)4.将你编码的Base64代码复.........【阅读全文】

阅读(3340) | 评论(0) | 转发(0)

发布时间:2015-11-26 17:23:04

package com.test;import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.util.Properties;/** * description:  * @author: matd * @version: v1.0 */public class ConfigTest {private static Properties properties;static {Stri.........【阅读全文】

阅读(2533) | 评论(0) | 转发(0)

发布时间:2015-11-25 16:19:18

public static String htttpRequest(String strURL, String params) {try {               URL url = new URL(strURL);            HttpURLConnection connection = (HttpURLConnection) url.openConnection();       &nbs.........【阅读全文】

阅读(1487) | 评论(0) | 转发(0)

发布时间:2015-11-16 09:14:23

public class Common {private static Properties properties;static {try {properties = new Properties();InputStream in = Common.class.getClassLoader().getResourceAsStream("config.properties");properties.load(in);} catch (IOException e) {e.printStackTrace();}}public static String getProperty.........【阅读全文】

阅读(1528) | 评论(0) | 转发(0)

发布时间:2015-11-10 10:14:42

private static Properties properties;static {try {properties = new Properties();String filePath = System.getProperty("user.dir") + "/config/config.properties";InputStream in = new BufferedInputStream(new FileInputStream(filePath));properties.load(in);} catch (IOException e) {e.printStackTrac.........【阅读全文】

阅读(2568) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

onlyword2017-06-23 11:39

回复  |  举报

勤劳致富linux2012-06-15 09:41

回复  |  举报

勤劳致富linux2012-06-01 11:43

老大,好饿呀,吃饭吧!

回复  |  举报

勤劳致富linux2012-05-31 17:50

老大,我来过!

回复  |  举报

llweiyang2012-03-30 11:04

回复  |  举报
留言热议
请登录后留言。

登录 注册