Wesley13的头像 ID: 92211795749

Wesley13

HelloWorld 社区成员

Wesley13

文章12157
个人网站0
加入社区2026

Java操作RabbitMQ简单队列

1、创建工具类packagecom.kobe.rabbitmq;importcom.rabbitmq.client.Connection;importcom.rabbitmq.client.ConnectionFactory;importjava.io.IOException;

Java操作JSON数据(2)

Gson是Google公司发布的一个开发源码的Java库,可用于将Java对象转换为JSON字符串,也可用于将JSON字符串转换为对应的Java对象。本介绍下Gson的基本使用方法,包括序列化和反序列化;文中所使用到的软件版本:Java1.8.0\_191、Gson2.8.6。1、引入依赖<dependency

Java操作Excel工具类(poi)

 分享一个自己做的poi工具类,写不是很完全,足够我自己当前使用,有兴趣的可以自行扩展1importorg.apache.commons.lang3.exception.ExceptionUtils;2importorg.apache.poi.hssf.usermodel.HSSFDataFormat;3importorg.apa

Java操作ElasticSearch(基础篇)

1.前言   看本文前需要先对ElasticSearch有一定了解(比如什么是index什么是type)   本人推荐直接使用ElasticSearchJavaAPI来操作..本人最开始是用springbootspringdataelasticsearchstarter来作为orm的..操作是方便了很多.支持类spr

Java搜索使用引擎

1、Java全文搜索引擎框架Lucene毫无疑问,Lucene是目前最受欢迎的Java全文搜索框架,准确地说,它是一个全文检索引擎的架构,提供了完整的查询引擎和索引引擎,部分文本分析引擎。Lucene为开发人员提供了相当完整的工具包,可以非常方便地实现强大的全文检索功能。下面有几款搜索引擎框架也是基于Lucene实现的。官方网站:http:

Java提高篇——equals()与hashCode()方法详解

阅读目录equals()方法详解hashcode()方法详解Hashset、Hashmap、Hashtable与hashcode()和Equals()的密切关系java.lang.Object类中有两个非常重要的方法:publicbooleanequals(Objectobj)pub

Java提高班(六)反射和动态代理(JDK Proxy和Cglib)

反射和动态代理放有一定的相关性,但单纯的说动态代理是由反射机制实现的,其实是不够全面不准确的,动态代理是一种功能行为,而它的实现方法有很多。要怎么理解以上这句话,请看下文。一、反射反射机制是Java语言提供的一种基础功能,赋予程序在运行时<strong自省</strong(introspect,官方用语)的能力。通过反射我们可以直接

Java提供的几种线程池

!(https://oscimg.oschina.net/oscnet/288c3e5eb3724ab39cd0d53b737def7b.jpg)_作者:天天不是小可爱__https://www.cnblogs.com/QuixoteY/p/11243997.html_线程池,顾名思义,放线程的池子嘛,这个池子可以

Java描述设计模式(22):策略模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(21):状态模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(18):享元模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(19):模板方法模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(16):代理模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(15):责任链模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(13):迭代器模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(12):外观模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela

Java描述设计模式(11):观察者模式

本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fmodelarithmeticparent)||GitEE·点这里(https://gitee.com/cicadasmile/modela