![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
junior_programmer
这个作者很懒,什么都没留下…
展开
-
SpringCloudStream学习
Spring Cloud GitHubSpring cloud 官方文档Rabbitmq binderIBM MQ binder原创 2020-04-24 16:38:23 · 152 阅读 · 0 评论 -
获取泛型参数类型
public abstract class AbstractEventHandler<T extends BaseEvent> { /** * 子类获取抽象父类的泛型参数类型 * * @return {@code Class<T>} * @author fengxin * @date 2020/3/3...原创 2020-04-13 15:13:30 · 315 阅读 · 0 评论 -
RabbitMq 实现消息自动序列化和反序列化的配置
配置@Configurationpublic class RabbitMqConfig implements RabbitListenerConfigurer { //以下配置RabbitMQ消息服务 @Autowired public ConnectionFactory connectionFactory; @Bean public De...原创 2020-03-27 17:52:44 · 3945 阅读 · 7 评论 -
ZipKin链路追踪
ZipKin官网ZipKin链路追踪介绍原创 2020-03-10 15:31:09 · 251 阅读 · 0 评论 -
Spring配置项明细查询
// 配置项明细可在如下jar包中找到 也可在idea中按住ctrl加鼠标点击实现从配置项跳转到配置类.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.2.4.RELEASE\spring-boot-autoconfigure-2.2.4.RELEASE.jar...原创 2020-01-21 17:57:19 · 272 阅读 · 0 评论 -
Swagger注解的规范用法 提高前后端及测试配合效率
详解https://blog.csdn.net/xiaojin21cen/article/details/78654652###用法1.@ApiParam结合JAX-RS注解或Sping web.bind注解组合使用代码样例: @ApiOperation(value = "测试swagger注解") @PostMapping("/testSwagger/{id}...原创 2019-12-24 15:42:38 · 601 阅读 · 0 评论 -
ZeroMQ 消息模式简介 ——java版
本介绍基于以下依赖 <dependency> <groupId>org.zeromq</groupId> <artifactId>jeromq</artifactId> <version>0.5.1</version> ...原创 2019-12-20 10:59:46 · 1031 阅读 · 0 评论 -
HttpURLConnection post请求 传参数
public static JSONObject post(String urlString, ParamInfo paramInfo) throws Exception { URL url = new URL(urlString); JSONObject jsonObject = new JSONObject(); HttpURLConn...原创 2019-12-08 17:29:43 · 3345 阅读 · 0 评论 -
DAO 相关代码生成器
http://java.bejson.com/generator/原创 2019-12-06 16:21:04 · 169 阅读 · 0 评论 -
java excel文件 导入导出
easyexcel导出时可通过注解添加复杂header内存管理优秀 ,读大文件也不容易出现OOM具体用法参考源码中的demo最新文档https://alibaba-easyexcel.github.io/index.htmlgithub地址 (源码中包含使用demo)https://github.com/alibaba/easyexceleasypoi...原创 2019-12-06 09:01:50 · 574 阅读 · 0 评论 -
JAVA学习日记2——JDBC连接mysql
安装配置mysql8下载mysql8:https://dev.mysql.com/downloads/file/?id=476233使用手册:https://dev.mysql.com/doc/refman/8.0/en/在安装目录D:\Program Files\mysql(读者可根据自己实际安装目录修改) 下添加 my.ini配置文件,写入配置如下:[mysqld]# 设...原创 2019-04-24 13:48:27 · 184 阅读 · 0 评论 -
JAVA学习日志8——反射获取内部类的实例
package test;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;import java.util.ArrayList;import java.util.HashMap;import java.util.Map;import com.espert...原创 2019-10-21 10:29:42 · 98 阅读 · 0 评论 -
java学习日志5——esper30分钟入门example
esper官网 可下载jar包和documentationhttp://www.espertech.com/esper。eclipse 新建mawen项目test。在 pom.xml文件中添加如下依赖: <dependencies> <dependency> <groupId>com.espertech</groupId...原创 2019-05-17 17:23:16 · 1245 阅读 · 2 评论 -
JAVA学习日志——线程池等待所有线程结束
参考:https://blog.csdn.net/q258523454/article/details/81978855自己测试通过的代码片段:使用CountDownLatch // 测试 int jobNum = 8; CountDownLatch countDownLatch = new CountDownLatch(jobN...转载 2019-06-16 14:24:30 · 3061 阅读 · 0 评论 -
Collection 和 Collections
转载自:https://www.cnblogs.com/1130136248wlxk/articles/5185183.html1、java.util.Collection 是一个集合接口。它提供了对集合对象进行基本操作的通用接口方法。Collection接口在Java 类库中有很多具体的实现。Collection接口的意义是为各种具体的集合提供了最大化的统一操作方式。Collectio...转载 2019-06-22 20:48:58 · 104 阅读 · 0 评论 -
lambda表达式实现list转map
利用java8新特性,可以用简洁高效的代码来实现一些数据处理。定义1个Apple对象:public class Apple { private Integer id; private String name; private BigDecimal money; private Integer num; public Apple(Integer ...转载 2019-06-23 09:45:41 · 3036 阅读 · 0 评论 -
Thinking In Java TypeInfo 动态代理
import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;class DynamicProxyHandler implements InvocationHandler { private Object proxied = ne...原创 2019-06-29 09:38:43 · 99 阅读 · 0 评论 -
JAVA学习日记1——配置JDK12,连接Access数据库
配置JDK12官网下载链接:https://www.oracle.com/technetwork/java/javase/downloads/index.htmljdk12不会自动安装jre,在安装目录下打开cmd运行:bin\jlink.exe --module-path jmods --add-modules java.desktop --output jre 手动生成jrec...原创 2019-04-21 22:26:53 · 685 阅读 · 0 评论