随笔分类 -  java

摘要:https://blog.csdn.net/qq_42383787/article/details/89476236 public void test() throws IOException { # 创建一个Search 对象 SearchRequest searchRequest = new S 阅读全文
posted @ 2020-10-13 13:57 winner66 阅读(234) 评论(0) 推荐(0)
摘要:Hutool是一个小而全的Java工具类库,通过静态方法封装, https://gitee.com/loolly/hutool Hutool之单例池——Singleton Singleton.get(Dog.class); 阅读全文
posted @ 2020-10-13 11:49 winner66 阅读(1581) 评论(0) 推荐(0)
摘要:@Slf4jpublic abstract class AbstractEsDataOperationListener<M extends ElasticsearchRepository, T> implements MessageListener { @Autowired protected M 阅读全文
posted @ 2020-10-13 11:35 winner66 阅读(152) 评论(0) 推荐(0)
摘要:https://my.oschina.net/fusublog/blog/3050964 阅读全文
posted @ 2020-10-13 11:32 winner66 阅读(3412) 评论(0) 推荐(0)
摘要:?: @SuppressWarnings("all") 阅读全文
posted @ 2020-10-13 10:11 winner66 阅读(66) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/zhangboyu/p/7580262.html Optional 类主要解决的问题是臭名昭著的空指针异常(NullPointerException) of() 和 ofNullable() orElse() 和 orElseGet() orElseT 阅读全文
posted @ 2020-10-13 10:05 winner66 阅读(97) 评论(0) 推荐(0)
摘要:https://mp.weixin.qq.com/s?__biz=MzI5MzYzMDAwNw==&mid=2247491103&idx=2&sn=00bd93824c60008784c41bfeafc581be&chksm=ec6e6747db19ee51502fb408cd205fc8ae56a 阅读全文
posted @ 2020-10-13 09:43 winner66 阅读(379) 评论(0) 推荐(0)
摘要:https://blog.51cto.com/sihai/2425915 这几个接口都在 java.util.function 包下的,分别是Consumer(消费型)、supplier(供给型)、predicate(谓词型)、function(功能性) 阅读全文
posted @ 2020-10-13 09:34 winner66 阅读(190) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-13 09:08 winner66 阅读(53) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-09-22 20:46 winner66 阅读(120) 评论(0) 推荐(0)
摘要:1、SqlSession简单介绍 (1)SqlSession简单原理介绍 SqlSession提供select/insert/update/delete方法,在旧版本中使用使用SqlSession接口的这些方法,但是新版的Mybatis中就会建议使用Mapper接口的方法。 映射器其实就是一个动态代 阅读全文
posted @ 2020-09-12 17:57 winner66 阅读(176) 评论(0) 推荐(0)
摘要:什么是查询缓存? 缓存是介于应用程序和物理数据源之间 mybatis提供查询缓存,用于减轻数据压力,提高数据库性能。 mybaits提供一级缓存,和二级缓存。 一级缓存是sqlSession级别的缓存。在操作数据库时需要构造sqlSession对象,在对象中有一个数据结构(HashMap),用于存储 阅读全文
posted @ 2020-09-12 16:59 winner66 阅读(146) 评论(0) 推荐(0)
摘要:import java.util.regex.Matcher; import java.util.regex.Pattern; public class RegexMatches { private static String REGEX = "dog"; private static String 阅读全文
posted @ 2020-09-08 22:20 winner66 阅读(165) 评论(0) 推荐(0)
摘要:>>> 将位右移动 用0填充 >> 将位右移动 用符号位填充 <<< 不存在 << 将位左移动 用0填充 阅读全文
posted @ 2020-08-31 12:51 winner66 阅读(348) 评论(0) 推荐(0)