自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

kq1983的专栏

流水账记录

  • 博客(932)
  • 资源 (19)
  • 论坛 (1)
  • 收藏
  • 关注

原创 String.intern源码

前言以JDK8为例来分析String.javapublic native String intern();String.copenjdk8\openjdk\jdk\src\share\native\java\lang\String.c#include "jvm.h"#include "java_lang_String.h"JNIEXPORT jobject JNICALLJava_java_lang_String_intern(JNIEnv *env, job.

2021-05-15 22:22:33 16

翻译 lower_case_table_names (mysql表名区分大小写)

However, this same statement is permitted on Windows. To avoid problems caused by such differences, it is best to adopt a consistent convention, such as always creating and referring to databases and tables using lowercase names. This convention is reco...

2021-05-10 14:48:02 15

原创 py_innodb_page_info工具

安装python3yum install python3安装py_innodb_page_infogit clone https://github.com/lynnlz/py_innodb_page_info查看ibd文件信息python3 py_innodb_page_info.py /var/lib/mysql/test/account0.ibd详细信息python3 py_innodb_page_info.py -v /var/lib/mysql/test/account.ibd

2021-05-09 22:42:56 11

翻译 Configuring Route Predicate Factories and Gateway Filter Factories

Shortcut ConfigurationShortcut configuration is recognized by the filter name, followed by an equals sign (=), followed by argument values separated by commas (,).application.ymlspring: cloud: gateway: routes: - id: after_rou...

2021-04-19 19:10:06 35

原创 spring-cloud-gateway之filterFactory

StripPrefixGatewayFilterFactory如果配置 StripPrefix=1,则去掉第1层路径例子: /first/order/info 则变为 /order/infospring: application: name: geteway cloud: gateway: routes: # lb 前缀匹配 /secnod/102/echo /myprefix/102/echo - id: 102_...

2021-04-19 18:00:35 35

原创 spring-cloud-gateway 路由转发

spring: application: name: geteway cloud: gateway: routes: - id: baidu_route uri: http://www.baidu.com # 目标服务地址 predicates: - Path=/baidu # 路径匹配 - id: account_info uri: http://localh...

2021-04-17 16:50:37 62

翻译 spring-cloud-gateway filter

The LoadBalancerClient FilterLoadBlancerClientFilterThe LoadBalancerClientFilter looks for a URI in the exchange attribute named ServerWebExchangeUtils.GATEWAY_REQUEST_URL_ATTR. If the URL has a scheme of lb (such as lb://myservice), it uses the Spring

2021-04-17 15:32:41 30

原创 jvm虚拟机指令

https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html

2021-04-15 23:04:17 32

原创 ClassFile - Attributes - Code

TheCodeAttributeTheCodeattribute is a variable-length attribute in theattributestable of amethod_infostructure (§4.6). ACodeattribute contains the Java Virtual Machine instructions and auxiliary information for a method, including an instance i...

2021-04-15 22:55:51 17

翻译 ClassFile之Attributes

AttributesAttributesare used in theClassFile,field_info,method_info, andCode_attributestructures of theclassfile format (§4.1,§4.5,§4.6,§4.7.3).All attributes have the following general format:attribute_info { u2 attribute_name_inde...

2021-04-15 11:12:50 22

翻译 ClassFile之Methods

MethodsEach method, including each instance initialization method (§2.9) and the class or interface initialization method (§2.9), is described by amethod_infostructure.No two methods in oneclassfile may have the same name and descriptor (§4.3.3)...

2021-04-15 10:53:45 19

翻译 ClassFile之Fields

Each field is described by afield_infostructure.No two fields in oneclassfile may have the same name and descriptor (§4.3.2).The structure has the following format:field_info { u2 access_flags; u2 name_index; ...

2021-04-15 10:28:48 12

翻译 access_flags

access_flagsThe value of theaccess_flagsitem is a mask of flags used to denote access permissions to and properties of this class or interface. The interpretation of each flag, when set, is specified inTable4.1-A.Table4.1-A.Class access and pr...

2021-04-14 19:14:20 22

原创 自己解析class文件

java文件package com.kq.jvm;public class SimpleDemo { private long id; public String name;}javap解析文件class文件00000000: CA FE BA BE 00 00 00 34 00 14 0A 00 03 00 11 07 J~:>...4........00000010: 00 12 07 00 13 01 00 02 69 64...

2021-04-14 00:36:51 109

原创 进制转化

二进制 十进制 十六进制 图形 01000000 64 40 @ 01000001 65 41 A 01000010 66 42 B 01000011 67 43 C 01000100 68 44 D 01000101 69 45 E 01000110 70 46 F 01000111 71 47...

2021-04-14 00:30:05 24

原创 常量池

Constant pool tagsConstant Type Value CONSTANT_Class 7 CONSTANT_Fieldref 9 CONSTANT_Methodref 10 CONSTANT_InterfaceMethodref 11 CONSTANT_String 8 CONSTANT_Integer 3 CONSTANT_Float 4 CONSTANT_Long 5 CONSTANT_Do

2021-04-13 23:13:49 36

翻译 The Constant Pool

The Constant PoolJava Virtual Machine instructions do not rely on the run-time layout of classes, interfaces, class instances, or arrays. Instead, instructions refer to symbolic information in theconstant_pooltable.Allconstant_poolta...

2021-04-13 23:03:05 17

翻译 ClassFile

ClassFile { u4 magic; u2 minor_version; u2 major_version; u2 constant_pool_count; cp_info constant_pool[constant_pool_count-1]; u2 access_flags; u2 t

2021-04-13 22:58:26 34

原创 jvm网站

java8虚拟机规范java8虚拟机规范https://docs.oracle.com/javase/specs/jvms/se8/html/index.html

2021-04-13 22:52:09 29

原创 org.openjdk.jol

githubhttps://github.com/openjdk/jol官网openjdk-jolmaven<dependency> <groupId>org.openjdk.jol</groupId> <artifactId>jol-core</artifactId> <version>${version}</version></dependency&...

2021-04-10 13:56:44 79

原创 springcloud的feign返回是xml

springcloud的feign返回是xml这个网上有很多版本我这里经过maven排查,发现spring-cloud-starter-alibaba-sentinel里有jackson-dataform-xml,把这个排除掉就好了解决方法<dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-al...

2021-04-08 19:33:08 40

原创 @FeignClient注解的重复名称解决

描述@FeignClient(value = "nacos-discovery")public interface FeignService { }@FeignClient(name = "nacos-discovery", fallback = EchoServiceFallback.class, configuration = FeignConfiguration.class)public interface EchoService { }这样由于名称相同,启动会报错org

2021-04-08 19:14:33 83 1

原创 Sentinel Dashboard install

路径https://github.com/alibaba/Sentinel/wiki/Dashboardhttps://github.com/alibaba/Sentinel/tree/master/sentinel-dashboardjava -Dserver.port=8080 \-Dcsp.sentinel.dashboard.server=localhost:8080 \-Dproject.name=sentinel-dashboard \-jar target/sentinel-d

2021-04-08 15:20:29 33

原创 loadbalancer动态刷新nacos的server

DynamicServerListLoadBalancerpublic DynamicServerListLoadBalancer(IClientConfig clientConfig, IRule rule, IPing ping, ServerList<T> serverList, ServerListFilter<T> filter,

2021-04-07 19:19:35 53

原创 ConfigurationProperties实现

ConfigurationProperties@Target({ ElementType.TYPE, ElementType.METHOD })@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface ConfigurationProperties { @AliasFor("prefix") String value() default ""; @AliasFor("value") String pref.

2021-04-02 19:54:46 52

翻译 Nacos Discovery Starter Configurations

The following shows the other configurations of the starter of Nacos Discovery: Configuration Key Default Value Description Server address spring.cloud.nacos.discovery.server-addr ...

2021-04-01 18:58:17 42

原创 ConditionalOnProperty

ConditionalOnProperty@Retention(RetentionPolicy.RUNTIME)@Target({ ElementType.TYPE, ElementType.METHOD })@Documented@Conditional(OnPropertyCondition.class)public @interface ConditionalOnProperty { /** * Alias for {@link #name()}. * @return the

2021-04-01 18:33:18 41

原创 ILoadBalancer

ILoadBalancer实现类AbstractLoadBalancerpublic abstract class AbstractLoadBalancer implements ILoadBalancer { public enum ServerGroup{ ALL, STATUS_UP, STATUS_NOT_UP }}...

2021-04-01 18:01:01 36

原创 IPing

类图AbstractLoadBalancerPingpublic abstract class AbstractLoadBalancerPing implements IPing, IClientConfigAware{ AbstractLoadBalancer lb; @Override public boolean isAlive(Server server) { return true; } }PingCon.

2021-04-01 17:47:19 22

原创 IRule

IRulepublic interface IRule{ public Server choose(Object key); public void setLoadBalancer(ILoadBalancer lb); public ILoadBalancer getLoadBalancer(); }类图AbstractLoadBalancerRulepublic abstract class AbstractLo...

2021-04-01 17:45:44 22

原创 tomcat安全漏洞

https://tomcat.apache.org/security-10.htmlhttps://tomcat.apache.org/security-9.htmlhttps://tomcat.apache.org/security-8.htmlhttps://tomcat.apache.org/security-7.html

2021-04-01 15:21:16 20

翻译 Ribbon属性配置

Starting with version 1.2.0, Spring Cloud Netflix now supports customizing Ribbon clients by setting properties to be compatible with the Ribbon documentation.This lets you change behavior at start up time in different environments.The following li...

2021-03-31 22:10:36 33

原创 nacos标记下线和删除实例

ClientBeatCheckTask标记下线// first set health status of instances: for (Instance instance : instances) { if (System.currentTimeMillis() - instance.getLastBeat() > instance.getInstanceHeartBeatTimeOut()) { // 默认15s

2021-03-29 21:00:16 118

转载 sentinel属性

ConfigurationThe following table shows that when there are corresponding bean types inApplicationContext, some actions will be taken: Existing Bean Type Action Function UrlCleaner WebCallbackManager....

2021-03-24 19:15:29 51

翻译 22.2.1.6 Page Directory

The Page Directory part of a page has a variable number of record pointers. Sometimes the record pointers are called "slots" or "directory slots". Unlike other DBMSs,InnoDBdoes not have a slot for every record in the page. Instead it keeps a sparse dire...

2021-03-20 22:21:02 47

原创 zookeeper 3.5.9 源码导入idea

clonegit clone -b release-3.5.9 https://github.com/apache/zookeeper.gitcompilemvn clean compile -DskipTestsprovidedzookeeper-server下面的pom的provided都注释掉,应该有7处<dependency> <groupId>jline</groupId> <artifactId>jl.

2021-03-20 13:59:05 60

原创 innodb的B+TREE层数

查看employee_1表desc employee_1总条数select count(*) from employee_1查看information_schema中相关表信息注意索引的PAGE_NO和:index_idSELECT b.name, a.name, index_id, type, a.space, a.PAGE_NO FROM information_schema.INNODB_SYS_INDEXES a, information_sche..

2021-03-18 18:11:53 45

翻译 nginx时间单位

Sizes can be specified in bytes, kilobytes (suffixeskandK) or megabytes (suffixesmandM), for example, “1024”, “8k”, “1m”.Offsets may be also specified in gigabytes usinggorGsuffixes.Time intervals can be specified in milliseconds, seconds, mi...

2021-03-17 18:03:52 38

原创 typedof

描述typedof并没有创建任何新类型,它只是为某个已存在的类型增加一个方便使用的标签。例子例子1typedef unsigned int MYINT;使用MYINT ii = 168;例子2typedef struct Book { int id; char * name;} BK;使用BK b = {5,"c++"};printf("id=%d , name=%s \n",b.id,b.name);...

2021-03-07 20:17:51 32

原创 Clone succeeded, but checkout failed. drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c

错误信息拉取linux的git源码到windows的时候,报下面的错error: invalid path ‘drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c’fatal: unable to checkout working treewarning: Clone succeeded, but checkout failed.You can inspect what was checked out with ‘git status’and retry

2021-03-07 08:00:09 215

Git-2.30.0-64-bit

Git-2.30.0-64-bit

2021-01-04

sentinel-dashboard.jar

version: 1.8.1

2021-03-24

java8-261.zip

jdk-8u261-windows-x64

2021-03-07

Jaspersoft Studio 6官方文档

IBCO Jaspersoft Studio User Guide Jasperreport6官方文档

2020-12-01

EasyConnectInstaller

EasyConnect 7.6.7.0

2021-01-10

Git-1.9.5-preview20150319

Git-1.9.5-preview20150319

2021-01-04

mysql5.7文档

mysql5.7文档

2020-11-09

navicat_premium12

Navicat Premium 12是一套数据库开发管理工具,支持连接 MySQL、Oracle等多种数据库,可以快速轻松地创建、管理和维护数据库。

2019-02-25

seata-server-1.2.0.tar.gz

分布式事务seata服务,自己直接网上下载seata-server-1.2.0.tar.gz有点难下载,主要用于自己备份,方便下载

2020-06-29

Instant_Mock_Testing_with_PowerMock

tesunit junit easymock PowerMock

2014-10-29

清理日志脚本

linux日志定时清理shell脚本, 可指定目录, 指定天数

2018-11-11

grails 文档

grails 的基础笔记 有基本命令 xml解析 Httpbuilder RESTClient XmlSlurper XStream Quartz的基本用法

2013-11-13

Learning Vi and Vim

learning the vi and vim

2014-11-17

ios7_4h.pdf

ios object-c apple programming

2014-11-06

how to learn bash third edition

学习bash好书 OReilly.Learning.the.bash.Shell.3rd.Edition.Mar.2005.eBook-DDU.chm

2009-03-14

Manning.JUnit.in.Action.2nd.Edition

learning junit good book

2014-10-29

Head First Design Patterns

Head First Design Patterns

2014-11-03

java reflection action

java reflection action

2014-11-22

java7 concurrency

java thread concurrency

2014-11-06

kq1983的留言板

发表于 2020-01-02 最后回复 2020-01-02

空空如也

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

TA关注的人 TA的粉丝

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