上一页 1 2 3 4 5 6 ··· 25 下一页
摘要: public class InsertSort { private List arr; public List getArr() { return arr; } public InsertSort(int size, int valueRange) { arr = new ArrayList(); Random random =... 阅读全文
posted @ 2019-10-11 17:04 zfzf1 阅读(111) 评论(0) 推荐(0) 编辑
摘要: select u.user_name from user u 映射为 u.user_name userName 映射值为空 阅读全文
posted @ 2019-09-10 17:23 zfzf1 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 通过 inner join 或者 where exists 来确保 主表的列满足一个条件 阅读全文
posted @ 2019-08-28 18:05 zfzf1 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-14 15:24 zfzf1 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 内部类的好处 有很好的封装性和可读性 内部静态类 通过 new 外部类名.内部类名() 构建对象 内部非静态类 通过 外部类对象.new 内部类名() 构建对象 开源软件 mybatisGenerate 的查询对象 是同步 静态内部来做的封装 阅读全文
posted @ 2019-08-14 09:04 zfzf1 阅读(95) 评论(0) 推荐(0) 编辑
摘要: import org.apache.commons.lang3.StringUtils;import org.aspectj.lang.ProceedingJoinPoint;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import 阅读全文
posted @ 2019-08-09 15:47 zfzf1 阅读(251) 评论(0) 推荐(0) 编辑
摘要: import com.thoughtworks.xstream.XStream;import java.io.StringReader;import java.lang.reflect.Field;import java.util.HashMap;import java.util.List;impo 阅读全文
posted @ 2019-08-09 13:19 zfzf1 阅读(183) 评论(0) 推荐(0) 编辑
摘要: alt+insert 选择 gson 阅读全文
posted @ 2019-08-09 12:43 zfzf1 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: @Componentpublic class SpringBeanFactory implements ApplicationContextAware { private static ApplicationContext applicationContext; // Spring应用上下文环境 p 阅读全文
posted @ 2019-08-09 10:50 zfzf1 阅读(230) 评论(0) 推荐(0) 编辑
摘要: public class ReflectionUtils { private final static Logger logger = LoggerFactory.getLogger(ReflectionUtils.class); /** * 检查字段 */ public static class CheckFiled{ /** * 检查字段是否为null 或者 "" * @param sourc 阅读全文
posted @ 2019-08-08 12:56 zfzf1 阅读(1035) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 25 下一页