This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<!-- This is a Personal Configure for My Leopold Keyboard By Syhily --> | |
<devicevendordef> | |
<vendorname>LEOPOLD_VENDOR</vendorname> | |
<vendorid>0x04d9</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>LEOPOLD_KEYBOARD</productname> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.joda.time.LocalTime; | |
/** | |
* Title: LocalTimeUtils <br> | |
* Description: A tiny time utils based on joda-time<br> | |
*/ | |
public class LocalTimeUtils { | |
private LocalTimeUtils() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.beans.IntrospectionException; | |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import org.springframework.util.Assert; | |
/** | |
* 类名称: BeanUtil <br> | |
* 类描述: 基于Spring的BeanUtils改造,银行路由自带Bean拷贝方法。<br> | |
* 针对指定的属性名进行拷贝,如果属性名相同类型不同,则不予拷贝。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.ThreadFactory; | |
import java.util.concurrent.TimeUnit; | |
import java.util.concurrent.atomic.AtomicLong; | |
/** | |
* Title: SystemClock <br> | |
* Description: 高并发场景下System.currentTimeMillis()的性能问题的优化。<br> | |
* System.currentTimeMillis()的调用比new一个普通对象要耗时的多 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.reflect.Constructor; | |
import java.text.MessageFormat; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.UUID; | |
import org.apache.commons.lang3.ArrayUtils; | |
/** | |
* 业务异常基类,所有业务异常都必须继承于此异常 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CommonBizException; | |
/** | |
* 核心业务异常基类,所有核心子系统的业务异常都必须继承于此异常 | |
* | |
* @author: yufan.sheng | |
* @since: 2014-09-17 下午02:12:29 | |
* @version: 1.0 | |
*/ | |
public abstract class CoreBizException extends CommonBizException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CoreBizException; | |
/** | |
* Title: BankRouterComponentException <br> | |
* Description: XX业务层异常基础定义类<br> | |
* | |
* @author yufan.sheng | |
* @version 1.0.0 | |
* @since 15/9/6 上午11:36 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.servlet.*; | |
import javax.servlet.http.HttpServletRequest; | |
import java.io.IOException; | |
/** | |
* <p>Title: XSS Filter</p> | |
* <p>Description: 描述</p> | |
* | |
* @author yufan.sheng | |
* @version 0.1, 14-5-1 21:43 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Collections; | |
import java.util.List; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletRequestWrapper; | |
import com.google.common.collect.Lists; | |
import com.google.common.collect.Maps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.lang3.StringUtils; | |
import javax.servlet.http.HttpServletRequest; | |
/** | |
* 类名称:WebUtils <br> | |
* 类描述: <br> | |
* | |
* @author yufan.sheng | |
* @since 2014-4-27 上午10:11:49 | |
* @version 1.0.0 |
OlderNewer