摘要:
public class InsertSort { private List arr; public List getArr() { return arr; } public InsertSort(int size, int valueRange) { arr = new ArrayList(); Random random =... 阅读全文
摘要:
select u.user_name from user u 映射为 u.user_name userName 映射值为空 阅读全文
摘要:
通过 inner join 或者 where exists 来确保 主表的列满足一个条件 阅读全文
摘要:
阅读全文
摘要:
内部类的好处 有很好的封装性和可读性 内部静态类 通过 new 外部类名.内部类名() 构建对象 内部非静态类 通过 外部类对象.new 内部类名() 构建对象 开源软件 mybatisGenerate 的查询对象 是同步 静态内部来做的封装 阅读全文
摘要:
import org.apache.commons.lang3.StringUtils;import org.aspectj.lang.ProceedingJoinPoint;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import 阅读全文
摘要:
import com.thoughtworks.xstream.XStream;import java.io.StringReader;import java.lang.reflect.Field;import java.util.HashMap;import java.util.List;impo 阅读全文
摘要:
alt+insert 选择 gson 阅读全文
摘要:
@Componentpublic class SpringBeanFactory implements ApplicationContextAware { private static ApplicationContext applicationContext; // Spring应用上下文环境 p 阅读全文
摘要:
public class ReflectionUtils { private final static Logger logger = LoggerFactory.getLogger(ReflectionUtils.class); /** * 检查字段 */ public static class CheckFiled{ /** * 检查字段是否为null 或者 "" * @param sourc 阅读全文