2013年11月25日

摘要: 简介: base64加密解密算法是我们编程中常用的,有很多第三方开源jar包提供base64加密解密算法。比如apache的commons-codec的jar包,还有sun jdk自带的sun.misc.BASE64Decoder。加密解密: 1 import sun.misc.BASE64Decoder; 2 import sun.misc.BASE64Encoder; 3 4 @SuppressWarnings("restriction") 5 public class Base64Util { 6 /** 7 * BASE64解密 8 * 9 * @p... 阅读全文

posted @ 2013-11-25 17:32 炫谷 阅读(5823) 评论(0) 推荐(1) 编辑

摘要: 一、准备工作、执行命令 学习插件: 学习apache的打包插件maven-assembly-plugin:http://maven.apache.org/plugins/maven-assembly-plugin/usage.html 执行命令: 将打成的jar包,执行java -jar XXX.jar,即可!二、main方法打成jar包,并引用第三方maven jar包的两种方法 方案一:使用assembly插件 1.在pom.xml里面配置的build 1 2 3 4 org.apache.ma... 阅读全文

posted @ 2013-11-25 16:30 炫谷 阅读(8463) 评论(0) 推荐(0) 编辑

摘要: 1 public static String convertStreamToString(InputStream is) { 2 /* 3 * To convert the InputStream to String we use the Buf... 阅读全文

posted @ 2013-11-25 15:00 炫谷 阅读(62202) 评论(4) 推荐(0) 编辑


Copyright © 2024 炫谷
Powered by .NET 8.0 on Kubernetes