- 浏览: 57809 次
- 性别:
- 来自: 成都
文章分类
HibernateUtils
public class HibernateUtil {
private static final SessionFactory sessionFactory;
static {
try {
// Create the SessionFactory from hibernate.cfg.xml
sessionFactory = new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
}
DateUtils
public class DateUtils
{
//日期加(天数)
public static java.util.Date addTimeByDay(java.util.Date date,int days) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)+days);
return calendar.getTime();
}
public static java.util.Date addTimeByMinutes(java.util.Date date,int minutes) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.MINUTE,calendar.get(Calendar.MINUTE)+minutes);
return calendar.getTime();
}
public static java.util.Date addTimeBySeconds(java.util.Date date,int seconds) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.SECOND,calendar.get(Calendar.SECOND)+seconds);
return calendar.getTime();
}
//得到当前日期
public static java.util.Date nowTime() throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
//得到当前时间
public static java.util.Date nowFullTime() throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
public static java.util.Date nowFullTime(String format) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat(format);
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
public static String convertDateStrToString(String datestr,String format) throws Exception
{
String result = null;
SimpleDateFormat sdf = new SimpleDateFormat(format);
try
{
result = sdf.format(sdf.parse(datestr));
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.format(sdf.parse(datestr));
}
return result;
}
public static String convertDateToString(java.util.Date date,String format) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat(format);
return sdf.format(date);
}
public static java.util.Date formatDateStr(String datestr) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.parse(datestr);
}
public static java.util.Date formatDateStr(String datestr,String format) throws Exception
{
java.util.Date result = null;
SimpleDateFormat sdf = new SimpleDateFormat(format);
try
{
result = sdf.parse(datestr);
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.parse(datestr);
}
return result;
}
public static java.util.Date formatFullDateStr(String datestr) throws Exception
{
java.util.Date result = null;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try
{
result = sdf.parse(datestr);
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.parse(datestr);
}
return result;
}
}
NumberUtils
public class NumberUtils
{
private NumberUtils() {
}
/**
* 精确的加法运算.
*/
public static double add(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.add(b2).doubleValue();
}
/**
*
* 精确的减法运算.
*
* @param v1 被减数
* @param v2 减数
*/
public static double subtract(double v1, double v2) {
BigDecimal b1 = new BigDecimal(Double.toString(v1));
BigDecimal b2 = new BigDecimal(Double.toString(v2));
return b1.subtract(b2).doubleValue();
}
/**
* 提供精确的乘法运算.
*/
public static double multiply(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.multiply(b2).doubleValue();
}
/**
* 提供精确的乘法运算,并对运算结果截位.
*
* @param scale 运算结果小数后精确的位数
*/
public static double multiply(double v1, double v2,int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.multiply(b2).setScale(scale,BigDecimal.ROUND_HALF_UP).doubleValue();
}
/**
* 提供(相对)精确的除法运算.
*
* @see #divide(double, double, int)
*/
public static double divide(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.divide(b2).doubleValue();
}
/**
* 提供(相对)精确的除法运算.
* 由scale参数指定精度,以后的数字四舍五入.
*
* @param v1 被除数
* @param v2 除数
* @param scale 表示表示需要精确到小数点以后几位
*/
public static double divide(double v1, double v2, int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.divide(b2, scale, BigDecimal.ROUND_HALF_UP).doubleValue();
}
/**
* 提供精确的小数位四舍五入处理.
*
* @param v 需要四舍五入的数字
* @param scale 小数点后保留几位
*/
public static double round(double v, int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b = new BigDecimal(v);
return b.setScale(scale, BigDecimal.ROUND_HALF_UP).doubleValue();
}
}
JdbcUtils
public class JdbcUtils {
static{
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (Exception e) {
e.printStackTrace();
}
}
public static Connection getConnection(){
Connection con = null;
try {
con= DriverManager.getConnection(url,name,password));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return con;
}
public static void close(ResultSet rs,PreparedStatement ps , Connection con) {
try {
if(rs!=null)
rs.close();
if(ps!=null)
ps.close();
if(con!=null)
con.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
EncodeUtils
public class EncodeUtils {
private static final String DEFAULT_URL_ENCODING = "UTF-8";
/**
* Hex编码.
*/
public static String hexEncode(byte[] input) {
return Hex.encodeHexString(input);
}
/**
* Hex解码.
*/
public static byte[] hexDecode(String input) {
try {
return Hex.decodeHex(input.toCharArray());
} catch (DecoderException e) {
throw new IllegalStateException("Hex Decoder exception", e);
}
}
/**
* Base64编码.
*/
public static String base64Encode(byte[] input) {
return new String(Base64.encodeBase64(input));
}
/**
* Base64编码, URL安全(将Base64中的URL非法字符如+,/=转为其他字符, 见RFC3548).
*/
public static String base64UrlSafeEncode(byte[] input) {
return Base64.encodeBase64URLSafeString(input);
}
/**
* Base64解码.
*/
public static byte[] base64Decode(String input) {
return Base64.decodeBase64(input);
}
/**
* URL 编码, Encode默认为UTF-8.
*/
public static String urlEncode(String input) {
return urlEncode(input, DEFAULT_URL_ENCODING);
}
/**
* URL 编码.
*/
public static String urlEncode(String input, String encoding) {
try {
return URLEncoder.encode(input, encoding);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException("Unsupported Encoding Exception", e);
}
}
/**
* URL 解码, Encode默认为UTF-8.
*/
public static String urlDecode(String input) {
return urlDecode(input, DEFAULT_URL_ENCODING);
}
/**
* URL 解码.
*/
public static String urlDecode(String input, String encoding) {
try {
return URLDecoder.decode(input, encoding);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException("Unsupported Encoding Exception", e);
}
}
/**
* Html 转码.
*/
public static String htmlEscape(String html) {
return StringEscapeUtils.escapeHtml(html);
}
/**
* Html 解码.
*/
public static String htmlUnescape(String htmlEscaped) {
return StringEscapeUtils.unescapeHtml(htmlEscaped);
}
/**
* Xml 转码.
*/
public static String xmlEscape(String xml) {
return StringEscapeUtils.escapeXml(xml);
}
/**
* Xml 解码.
*/
public static String xmlUnescape(String xmlEscaped) {
return StringEscapeUtils.unescapeXml(xmlEscaped);
}
}
public class HibernateUtil {
private static final SessionFactory sessionFactory;
static {
try {
// Create the SessionFactory from hibernate.cfg.xml
sessionFactory = new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public static SessionFactory getSessionFactory() {
return sessionFactory;
}
}
DateUtils
public class DateUtils
{
//日期加(天数)
public static java.util.Date addTimeByDay(java.util.Date date,int days) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.DATE,calendar.get(Calendar.DATE)+days);
return calendar.getTime();
}
public static java.util.Date addTimeByMinutes(java.util.Date date,int minutes) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.MINUTE,calendar.get(Calendar.MINUTE)+minutes);
return calendar.getTime();
}
public static java.util.Date addTimeBySeconds(java.util.Date date,int seconds) throws Exception
{
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.set(Calendar.SECOND,calendar.get(Calendar.SECOND)+seconds);
return calendar.getTime();
}
//得到当前日期
public static java.util.Date nowTime() throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
//得到当前时间
public static java.util.Date nowFullTime() throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
public static java.util.Date nowFullTime(String format) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat(format);
String datestr = sdf.format(java.util.Calendar.getInstance().getTime());
return sdf.parse(datestr);
}
public static String convertDateStrToString(String datestr,String format) throws Exception
{
String result = null;
SimpleDateFormat sdf = new SimpleDateFormat(format);
try
{
result = sdf.format(sdf.parse(datestr));
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.format(sdf.parse(datestr));
}
return result;
}
public static String convertDateToString(java.util.Date date,String format) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat(format);
return sdf.format(date);
}
public static java.util.Date formatDateStr(String datestr) throws Exception
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
return sdf.parse(datestr);
}
public static java.util.Date formatDateStr(String datestr,String format) throws Exception
{
java.util.Date result = null;
SimpleDateFormat sdf = new SimpleDateFormat(format);
try
{
result = sdf.parse(datestr);
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.parse(datestr);
}
return result;
}
public static java.util.Date formatFullDateStr(String datestr) throws Exception
{
java.util.Date result = null;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try
{
result = sdf.parse(datestr);
}
catch (Exception ex)
{
sdf = new SimpleDateFormat("yyyy-MM-dd");
result = sdf.parse(datestr);
}
return result;
}
}
NumberUtils
public class NumberUtils
{
private NumberUtils() {
}
/**
* 精确的加法运算.
*/
public static double add(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.add(b2).doubleValue();
}
/**
*
* 精确的减法运算.
*
* @param v1 被减数
* @param v2 减数
*/
public static double subtract(double v1, double v2) {
BigDecimal b1 = new BigDecimal(Double.toString(v1));
BigDecimal b2 = new BigDecimal(Double.toString(v2));
return b1.subtract(b2).doubleValue();
}
/**
* 提供精确的乘法运算.
*/
public static double multiply(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.multiply(b2).doubleValue();
}
/**
* 提供精确的乘法运算,并对运算结果截位.
*
* @param scale 运算结果小数后精确的位数
*/
public static double multiply(double v1, double v2,int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.multiply(b2).setScale(scale,BigDecimal.ROUND_HALF_UP).doubleValue();
}
/**
* 提供(相对)精确的除法运算.
*
* @see #divide(double, double, int)
*/
public static double divide(double v1, double v2) {
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.divide(b2).doubleValue();
}
/**
* 提供(相对)精确的除法运算.
* 由scale参数指定精度,以后的数字四舍五入.
*
* @param v1 被除数
* @param v2 除数
* @param scale 表示表示需要精确到小数点以后几位
*/
public static double divide(double v1, double v2, int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b1 = new BigDecimal(v1);
BigDecimal b2 = new BigDecimal(v2);
return b1.divide(b2, scale, BigDecimal.ROUND_HALF_UP).doubleValue();
}
/**
* 提供精确的小数位四舍五入处理.
*
* @param v 需要四舍五入的数字
* @param scale 小数点后保留几位
*/
public static double round(double v, int scale) {
if (scale < 0) {
throw new IllegalArgumentException("The scale must be a positive integer or zero");
}
BigDecimal b = new BigDecimal(v);
return b.setScale(scale, BigDecimal.ROUND_HALF_UP).doubleValue();
}
}
JdbcUtils
public class JdbcUtils {
static{
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (Exception e) {
e.printStackTrace();
}
}
public static Connection getConnection(){
Connection con = null;
try {
con= DriverManager.getConnection(url,name,password));
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return con;
}
public static void close(ResultSet rs,PreparedStatement ps , Connection con) {
try {
if(rs!=null)
rs.close();
if(ps!=null)
ps.close();
if(con!=null)
con.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
}
EncodeUtils
public class EncodeUtils {
private static final String DEFAULT_URL_ENCODING = "UTF-8";
/**
* Hex编码.
*/
public static String hexEncode(byte[] input) {
return Hex.encodeHexString(input);
}
/**
* Hex解码.
*/
public static byte[] hexDecode(String input) {
try {
return Hex.decodeHex(input.toCharArray());
} catch (DecoderException e) {
throw new IllegalStateException("Hex Decoder exception", e);
}
}
/**
* Base64编码.
*/
public static String base64Encode(byte[] input) {
return new String(Base64.encodeBase64(input));
}
/**
* Base64编码, URL安全(将Base64中的URL非法字符如+,/=转为其他字符, 见RFC3548).
*/
public static String base64UrlSafeEncode(byte[] input) {
return Base64.encodeBase64URLSafeString(input);
}
/**
* Base64解码.
*/
public static byte[] base64Decode(String input) {
return Base64.decodeBase64(input);
}
/**
* URL 编码, Encode默认为UTF-8.
*/
public static String urlEncode(String input) {
return urlEncode(input, DEFAULT_URL_ENCODING);
}
/**
* URL 编码.
*/
public static String urlEncode(String input, String encoding) {
try {
return URLEncoder.encode(input, encoding);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException("Unsupported Encoding Exception", e);
}
}
/**
* URL 解码, Encode默认为UTF-8.
*/
public static String urlDecode(String input) {
return urlDecode(input, DEFAULT_URL_ENCODING);
}
/**
* URL 解码.
*/
public static String urlDecode(String input, String encoding) {
try {
return URLDecoder.decode(input, encoding);
} catch (UnsupportedEncodingException e) {
throw new IllegalArgumentException("Unsupported Encoding Exception", e);
}
}
/**
* Html 转码.
*/
public static String htmlEscape(String html) {
return StringEscapeUtils.escapeHtml(html);
}
/**
* Html 解码.
*/
public static String htmlUnescape(String htmlEscaped) {
return StringEscapeUtils.unescapeHtml(htmlEscaped);
}
/**
* Xml 转码.
*/
public static String xmlEscape(String xml) {
return StringEscapeUtils.escapeXml(xml);
}
/**
* Xml 解码.
*/
public static String xmlUnescape(String xmlEscaped) {
return StringEscapeUtils.unescapeXml(xmlEscaped);
}
}
发表评论
-
Spring源码分析之IOC2
2013-03-16 23:25 778本篇将介绍下ApplicationCo ... -
Spring源码分析之IOC
2013-03-16 21:40 734先看两种方式在IOC容器取得bean 1 beanFactor ... -
一些在工作中遇到的问题汇总
2012-12-10 23:31 0保留一定的小数位数 1 DecimalFormat ... -
Set集合源码初探
2012-12-06 23:07 0[color=green][size=medium] ... -
一些常用的jar包
2012-12-04 22:44 0一些常用的jar 放在网上方便使用 Did your c ... -
java 获取请求ip
2012-11-20 23:11 3242public class IpUtil { publ ... -
mongodb
2012-11-20 22:09 688mongodb文档, -
padingtoolbar 的扩张
2012-10-31 22:01 0在Ext的原有分页控件中,服务器端方法是根据传入的起始数据记录 ... -
extjs的一些组件
2012-10-17 22:34 668<script type="text/java ... -
extjs
2012-10-14 23:09 611extjs的一些文档 -
jquery ui
2012-09-11 22:54 700一个jquery ui 后台 -
重拾java之线程1
2012-09-10 00:17 908[size=medium] 接触java也有一段时间了,以前选 ... -
dom4j 一些使用
2012-07-30 22:40 0dom4j使用 -
一个http请求
2012-07-18 00:04 0ackage com.sxit.phoenix.common; ... -
读书笔记effective之对所有对象通用的方法
2012-03-18 17:22 858读书笔记effective之对所有对象通用的方法 第一条 覆 ... -
读书笔记effective java 之条目
2012-03-18 15:05 819最近看了下effective java 有编程许多经验值得学 ... -
读书笔记effective java 之通用程序设计3
2012-03-15 22:21 850第五条 基本类型优先于装箱基本类型 java有一个类型系 ... -
读书笔记effective java 之通用程序设计2
2012-03-15 20:59 891第三条 了解和使用类库 ... -
effective java 之通用程序设计
2012-03-15 16:15 741第一条 将局部变量的作用域最小化 将局部变量的作用域最小 ... -
http与socket连接区别
2011-11-08 01:11 445相信不少初学手机联网 ...
相关推荐
1、Utils工具类有String工具类、XmlNode节点工具类、BeanFactory相关、Common工具类、Cookie工具类、Date工具类、Http工具类、JDBC工具类、日志Log工具类、Servlet相关等。2、工具类省了重复造轮子的工作,可以直接...
十年工作经验总结的java 常用工具类分享大家-ArrayUtil,CharsetUtil,CharUtil,CheckUtil,ChinesUtil,ClassUtil,ConfigUtil,ConvertUtil,DateUtil,EmailUtil,ExceptionUtil,FilePathUtil,FileUtil,...
工作11年总结的常用java工具类,上百种方法,开发中绝对用得到&&工作11年总结的常用java工具类,上百种方法,开发中绝对用得到
自己总结的java工具类,包括异常、文件、字符串、时间、http、搜索、进程、poi、反射、邮件、静态页面、spring、redis、权限递归、加解密,签名、校验码、json等等
主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java。 目前包括HttpUtils、DownloadManagerPro、ShellUtils、PackageUtils、PreferencesUtils、JSONUtils、FileUtils、ResourceUtils、StringUtils、...
因此想要好好整理一番,方便回顾与学习,所以这是一个总结向的代码仓库。 本人会把个人学习的知识、实际项目遇到的难题、有趣的功能实现例子存于此,包括但不限于以下几种: 原生 API 工具操作类 设计模式 数据结构 ...
当学习完一个知识点以后,自己做笔记,同时事后要总结,如果自己能把一个知识清晰表达出来的时候,自己也是有很大的收获和成长的; 赠人玫瑰手留余香。 目录 学习知识相关 Java 计算机基础(重要) 需要完善 需要...
java实现导出Excel多行表头复杂模板 一般我们都会选择poi来导出,选择一个比较好的ExcelUtils 但是对于初学者而言不了解poi的,还需从poi API文档去学习,如果是自学的话更好,如果是公司安排的任务,没有接触过有...
主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java。 目前包括HttpUtils、DownloadManagerPro、ShellUtils、PackageUtils、 PreferencesUtils、JSONUtils、FileUtils、ResourceUtils、StringUtils、 ...
作者从事java开发五六年,深钻多线程系列,对java并发包下面的各种类的源码都有深入研究,适合爱好java的开发者和学习者观看
DemoLists一个工具类,存放View、Animation、Utils等积跬步以至千里 早打算写个总结,对于过去学过的一些东西做个Mark,写个大的Demo,像之前的某个老师讲的那样。 项目中放一些常用的工具类在这里,同时将自己这...
androidutils ##安卓开发常用的工具 ###其实网上有很多类似的东西,有部分不适合自己的开发,所以自己总结了一个适合自己的安卓开发的工具箱 #####联系方式:
3、lib下拷贝 cors-filter-2.5.jar java-property-utils-1.9.1.jar包 4、启动ArcGIS Server的服务。 4、前台页面js的function内首先加入: esriConfig.request.corsEnabledServers.push("localhost:6080");//...
Utils - 性能与易用性兼顾的Java基础库,综合各门各派的大成之作(近期重点). BootApi - 基于Spring Boot的Web Service应用, 可以用于SOA服务,或Ajax页面的后台. BootWeb - 基于Spring Boot的Web应用, 典型的增删改...
做了一个大致分类,并对每种分类题型的解题思路做了总结。 主要参考 Robert Sedgewick 的算法书进行实现,源代码以及测试代码可在另一个仓库获取。 操作系统 :laptop: 参考 现代操作系统、Unix 环境高级编程、深入...
#简介主要是自己在学习《编程语言实现模式》对语法解析一块的总结,在Tenrence Parr的示例代码基础上做了一些修改方便方便复用。包含四个parser基类:LL(1): 。LL(K):。:LL(*)回溯优化解析器。:继承自...
主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java。 目前包括HttpUtils、DownloadManagerPro、ShellUtils、PackageUtils、PreferencesUtils、JSONUtils、FileUtils、ResourceUtils、StringUtils、...
【资源说明】 基于JavaWeb + Mysql + Layui实现的宿舍管理系统源码+数据库+演示截图+项目说明.zip 1、该资源内项目代码都是经过测试运行成功,...> 总结:jsp用于作页面展示,ajax用于异步刷新,java处理具体业务逻辑
MD5、RSA、Base64Utils、DialogUtil、ZXingUtils、GlideUtil、、、工具类 自己总结了一些必备的工具类,可直接放入工程,简单调用 对OkHttp进行了封装,简单调用,便于操作 进行了post、get、文件上传等进行封装
说明:此工具类是本人开发中总结下来的,还有其它的跳转亲给我留言,希望大家一起把这个工具类打造成最全的跳转工具,谢谢! package com.android.chat.utils; import java.io.File; import java.io.Serializable; ...