- 博客(5)
- 收藏
- 关注
原创 java md5,sha编码工具类DigestUtils
package com.lightafire.utils;import org.apache.commons.codec.digest.DigestUtils;/** * EasyDigestUtil * * @author lightafire */public class EasyDigestUtil { private enum ALGORITHM_NAME {
2016-10-19 11:08:11 3194
转载 Spring Bean Scope Example using @Scope Annotation
http://www.concretepage.com/spring/spring-bean-scope-example-using-scope-annotation-and-xml-for-singleton-prototype-request-session-global-session-and-application-scope-with-scoped-proxy#session
2016-10-19 10:58:42 233
原创 spring security custom loginPage + freemarker
最近在做一个项目,使用spring security来做登录的身份验证,折腾了很久,也搜了很多资料终于把这部分内容做的差不多了,在这里来做一个总结。项目所使用的工具有:Spring 4.2.2.RELEASESpring Security 4.0.3.RELEASEMAVEN 3JDK 1.7tomcat 8这里有一个很简单的使用spring-security的项目,Spring-Sec
2016-10-19 10:49:34 3456
原创 Java中的List和Array
java中list和array相互转换的经常有需要数组和list相互转换的情况发生,在此记录。array->list String[] strings = {"0","1","2"}; List<String> stringList = Arrays.asList(strings);list->array String[] stringsNew = stringList.
2016-10-10 11:24:58 309
原创 java中简单的日期与字符串转换
最近写的一个项目中,由于前端的日期格式为字符串格式,需要频繁的进行日期格式的转换,特在此记录一下。字符串->日期 String dateStr = "1979-01-01"; Date date = DateUtils.parseDate(dateStr, "yyyy-MM-dd");日期->字符串 Date date = new Date(); String dateS
2016-10-09 10:46:53 1280
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人