自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

过渡期的专栏

成长始于笔下

  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 golang 动态更新kafka metadata (sarama)

1. 从截图中可以看到当方法调用的顺序NewClient --> *client.backgroundMetadataUpdater --> *client.refreshMetadata --> *client.RefreshMetadata--> *client.tryFreshMetada --> *client.updateMetadata2. 从以下代码中可以看到定义了一个定时器(NewTicker) 去刷新Metadata, 刷新间隔的...

2020-06-09 16:57:35 766

原创 Oracle 查询数据时根据指定的字段和指定的值的顺序来排序

select id from Test order by instr('1,4,2,7,5', id);

2019-03-29 19:44:02 3753 2

原创 springboot 实现log4j2

1. exclude the spring boot default logback and add dependency for log4j2<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web<...

2019-03-19 14:10:11 308

原创 如何创建一个cron job

1. 查看当前有哪些cron jobcrontab -l2. 写一个shell脚本下面这个脚本例子#!/bin/shmyFile="/opt/mem_report.txt"## 如果文件不存在就创建一个if [ ! -f "$myFile" ]; thentouch "$myFile"fi##获取该文件的第一行数据first=$(cat /opt/mem_re...

2019-03-08 13:44:27 970

原创 Springboot 项目 maven 打包不包含第三方jar包

Maven 打包的时候,如果包含了第三方的jar包,这个打出来的jar文件会很大,所有有时候我们希望在打包的过程中不包含第三方的jar文件。1. 如何打一个不包含第三方jar文件的包呢? 只需在pom文件中加入下面的代码即可&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &l...

2019-02-28 14:09:41 4436 2

原创 SpringBoot 自定义Annotation

1. Maven pom.xml 文件添加AOP相关的jar包&lt;dependency&gt;            &lt;groupId&gt;org.springframework&lt;/groupId&gt;            &lt;artifactId&gt;spring-aop&lt;/artifactId&gt;            &lt;version&g...

2018-11-27 14:34:01 816

原创 error: Can not perform the operation because the authentication is not enabled for the cluster

前提:我想通过Durid Data Source 来管理Ignite 的Jdbc连接,然后却抱了这个错误create connection SQLException, url: jdbc:ignite:thin://127.0.0.1:10800, errorCode 0, state 08004java.sql.SQLException: Handshake failed [drive...

2018-11-09 18:13:24 1131

原创 AWK 学习笔记(一) 环境搭建

本篇为我学习AWK的笔记1.  AWK 有3种类型AWK − Original AWK from AT & T Laboratory.NAWK − Newer and improved version of AWK from AT & T Laboratory.GAWK − It is GNU AWK. All GNU/Linux distributio

2016-09-30 11:05:04 228

原创 java.lang.IllegalStateException: No modifications are allowed to a locked ParameterMap

这是由于 javax.servlet.ServletRequest getParameterMap method 返回的是一个不可变(immutable)的对象什么是Immutable class?创建一个Immutable 类需要满足以下条件1. 用final 声明类,使类不可以被继承2. 所有的属性字段都用private 修饰,以至于不能直接访问属性3. 不提供se

2016-09-05 14:46:43 4888

Spring Recipes: A Problem-Solution Approach

这是一本很好的关于三大框架的书本,还可以作为你们当做英文文献参考,值得一览!

2011-03-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除