自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

kongkong的专栏

流水账记录

  • 博客(1164)
  • 资源 (26)
  • 收藏
  • 关注

原创 lua string

lua string

2022-09-01 17:32:09 121

原创 Collections.sort

Collections.sort

2022-08-23 18:17:44 46

原创 mysql存储过程

mysql

2022-06-28 16:47:16 188

原创 Feign的serviceName替换真正的服务器

LoadBalancerContextpublic URI reconstructURIWithServer(Server server, URI original) { String host = server.getHost(); int port = server.getPort(); String scheme = server.getScheme(); if (host.equals(original.getHost()) &a

2022-05-25 23:04:33 121

原创 c函数指针

#include <stdio.h>void echo(void) { printf("===========echo===================\n");}void echo1(void) { printf("===========echo1===================\n");}long sum(int a,long b){ return a+b;}int main(){ // 定义函数指针 void (.

2022-05-19 23:44:02 64

原创 char*

例子 char *str = "12345678"; for(char i=0;i<8;i++) { printf("str[%d] = %c(%d) \n", i,*str,*str); str++; }输出str[0] = 1(49)str[1] = 2(50)str[2] = 3(51)str[3] = 4(52)str[4] = 5(53)str[5] = 6(54)str[6] = 7(55)str[7] = 8(56)

2022-05-05 23:07:33 181

原创 powerdesigner工具将pdm文件的comment同步至name

使用Powerdesigner工具将pdm文件的comment同步至name。点击Tools->Execute Commands->Edit/Run ScriptsOption Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl Set mdl = ActiveModel If (mdl Is Nothing) Then

2022-05-05 17:00:34 196

原创 powerdesigner设置 name to comment

Powerdesigner 把name设置成comment;PowerDesigner->Tools->Execute Commands->Edit/Run ScriptsOption Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl Set mdl = ActiveModel If (mdl Is Nothing) Then

2022-05-05 16:55:39 244

原创 PowerDesigner 中为日期字段设默认值为 CURRENT_TIMESTAMP

打开选项选中创建时间,点击右键点击Properties…选中Standard Checks查看脚本参考文档参考文档

2022-05-05 11:02:37 354

原创 Configure a Pod to Use a Projected Volume for Storage

projected.yamlapiVersion: v1kind: Podmetadata: name: test-projected-volumespec: containers: - name: test-projected-volume image: busybox:1.28 args: - sleep - "86400" volumeMounts: - name: all-in-one mountPath: "/proj

2022-04-22 22:17:18 163

原创 部署无状态应用程序及升级

deployment-1-14-2.yamlversion: 1.14.2apiVersion: apps/v1kind: Deploymentmetadata: name: nginx-deploymentspec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods matching the template template: metadata

2022-04-22 21:46:29 2444

原创 serviceaccounts is forbidden: User “system:serviceaccount:kubernetes-dashboard:kubernetes-dashboard“

错误信息serviceaccounts is forbidden: User “system:serviceaccount:kubernetes-dashboard:kubernetes-dashboard” cannot list resource “serviceaccounts” in API group “” in the namespace “default”费了老大的功夫才明白是serviceaccount的问题,k8sdashboard出厂的serviceaccount权限太低,需要配置

2022-04-22 20:45:32 1103

原创 docker安装kibana6.5.0

下载镜像docker pull kibana:6.5.0安装docker run -d --name kibana -e ELASTICSEARCH_URL=http://172.16.5.98:9200 -p 5601:5601 kibana:6.5.0验证http://$ip:5601

2022-04-21 00:14:29 2866

原创 docker安装elasticsearch:6.5.0

下载镜像docker pull elasticsearch:6.5.0查看镜像docker images启动镜像docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 elasticsearch:6.5.0查看启动情况docker ps -a启动失败查看日志docker logs -f 3c7fmax virtual memory ar

2022-04-20 23:22:59 2127

原创 gin的restful风格例子

新增// addr.POST("/employee", func(c *gin.Context) { //var username = c.PostForm("username") //var name = c.PostForm("name") var username = c.Query("username") var name = c.Query("name") var age,err = strconv.Atoi(c.Query("age")) if err!=nil { age

2022-04-10 00:16:12 184

原创 gin接收参数例子

r变量r := gin.Default()Query类似springmvc中的@RequestParam// addr.POST("/employee", func(c *gin.Context) { //var username = c.PostForm("username") //var name = c.PostForm("name") var username = c.Query("username") var name = c.Query("name") var age,e

2022-04-10 00:06:39 347

原创 gin安装

环境要求Go 1.13 及以上版本安装要安装 Gin 软件包,需要先安装 Go 并设置 Go 工作区下载并安装 gingo get -u github.com/gin-gonic/gin将 gin 引入到代码中import "github.com/gin-gonic/gin"开始新建server.goserver.go内容package mainimport "github.com/gin-gonic/gin"func main() { r := gin.Default(

2022-04-06 21:56:14 782

原创 golang问题集锦

no required module provides packageno required module provides packagethe selected directory is not a valid home for go sdkthe selected directory is not a valid home for go sdk

2022-04-05 22:03:53 242

原创 no required module provides package

no required module provides packageno required module provides package github.com/satori/go.uuid: go.mod file not found in current directory or any parent directory; see ‘go help modules’原因安装过go高版本解决方式go env -w GO111MODULE=auto或者go env -w GO111MO

2022-04-05 22:01:42 3293

原创 the selected directory is not a valid home for go sdk

原因从go 1.15升级到go 1.18后,goland2020.3切换sdk,报如下错解决版本查看go版本go versiongo version go1.18 windows/amd64编辑zversion.go文件{GOROOT}/src/runtime/internal/sys/zversion.go添加下面语句const TheVersion = `go1.18`重启goland参考文档参考文档...

2022-04-05 20:13:47 352 2

原创 apifox设置全局header

前言调用接口的时候,比如每个接口的请求头都有1个tokenapifox设置全局header

2022-03-24 18:24:15 2641

原创 add esp,8

test1函数int test1(int a, int b) { return a + b;}汇编00A83CE3 mov eax,dword ptr [b] 00A83CE6 push eax 00A83CE7 mov ecx,dword ptr [a] 00A83CEA push ecx 00A83CEB call test1 (0A811DBh) 00A83CF0 add

2022-03-20 12:30:13 388

原创 feign问题集锦

Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0解决String view(@RequestParam String id);改成String view(@RequestParam("id") String id);

2022-03-15 17:23:00 368

翻译 Buffer Pool

Buffer PoolThe buffer pool is an area in main memory where InnoDB caches table and index data as it is accessed. The buffer pool permits frequently used data to be accessed directly from memory, which speeds up processing. On dedicated servers, up to 80%

2022-03-13 16:47:01 93

转载 语雀快捷键

1. 格式粗体 Ctrl + B斜体 Ctrl + I删除线 Ctrl + Shift + X下划线 Ctrl + U上标 Ctrl + Shift + .下标 Ctrl + Shift + ,行内代码 Ctrl + E左对齐 Ctrl + Shift + L居中对齐 Ctrl + Shift + C右对齐 Ctrl + Shift + R两端对齐 Ctrl + Shift + J增加缩进 Ctrl + ]减少缩进 Ctrl + [2. 插入提及 @插入链接 Ctrl + K

2022-03-11 23:24:20 3443

原创 swagger内的api导入到apifox中

home路径http://localhost:18080/doc.html#/home找到api-docs路径打开api-fox

2022-03-11 11:23:21 882

原创 通过kong创建1个负载均衡

通过命令创建创建upstreamcurl -X POST http://localhost:8001/upstreams --data "name=myeduUpstream"添加target给upstream添加target,target可以添加多个$ curl -X POST http://localhost:8001/upstreams/myeduUpstream/targets --data "target=172.168.5.1:10000" --data "weight=100"

2022-03-03 18:58:45 177

原创 kong转发的时候,保留原始的host

创建一个upstream$ curl -X POST http://localhost:8001/upstreams --data "name=myeduUpstream"添加target给upstream添加target,target可以添加多个$ curl -X POST http://localhost:8001/upstreams/myeduUpstream/targets --data "target=172.168.5.1:10000" --data "weight=100"创建s

2022-03-03 18:07:44 192

原创 Docker安装Kong API Gateway及konga

创建Docker的Network# 创建$ docker network create kong-net# 检查$ docker network list安装数据库$ docker run -itd --network=kong-net \ --name kong-database \ -e POSTGRES_DB=kong \ -e POSTGRES_USER=pkslow \ -e POSTGRES_PASSWORD=pkslow-kong \ -p

2022-03-03 18:06:10 486

原创 自己构建Docker--使用外部的application.yml

DockerfileFROM java:8VOLUME /tmpADD gateway-1.0-SNAPSHOT.jar app.jarRUN bash -c 'touch /app.jar'EXPOSE 8000ENTRYPOINT ["java","-Djava.security.egd=file:/dev/.urandom","-jar","/app.jar"]构建sudo docker build -t gateway:1.0.0 .运行sudo docker run --n

2022-03-02 17:48:24 858

转载 不同项目配置不同的 Git 账号

遇到在一台电脑里,通常会遇到这种情况。有公司的 Git 账号提交公司的 Gitlab,有自己的 Github 账号提交 Github 仓库。比如像我的公司 Git 账号为 xiaojia,但我的 Github 账号为 Linda0821,并且邮件也不一样。当我设置 git 全局 name 和 email 为我的公司 Git 账号时,提交 Github 显示的也是这个账号,而不是我的 Github 账号,这就有点尴尬了。解决由于电脑上 Github 仓库比较多,所以我将全局 name 和 email

2022-03-02 15:09:41 388

原创 转发携带原始的Host

springcloud gatewayPreserveHostHeader# 路径通配匹配- id: domain_forward uri: http://localhost:10000/* # 目标服务地址 predicates: - Path=/200/* filters: # - StripPrefix=1 # 转发之前去掉1层路径 去掉/200 - PreserveHostHeader # 原始主机头nginxproxy_set_header

2022-03-01 19:22:00 1582

原创 docker安装nginx,使用本地配置文件

ip格式hostPort:containerPort安装docker run --name nginx -p 8090:8080 -v /home/king/nginx/nginx.conf:/etc/nginx/nginx.conf -v /home/king/nginx/log:/var/log/nginx -d nginxnginx.conf upstream tomcatserver { server 172.17.0.1:11000; } se

2022-03-01 18:21:21 2416

原创 Using index 和 Using index condition 区别

基础数据员工表CREATE TABLE `employees1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(24) NOT NULL DEFAULT '' COMMENT '姓名', `firstname` varchar(24) NOT NULL DEFAULT '' COMMENT 'firstname', `lastname` varchar(24) NOT NULL DEFAULT '' COMMENT 'las

2022-02-24 19:31:08 332

原创 Class.forName底层原理

ClassClass.forNamepublic static Class<?> forName(String name, boolean initialize, ClassLoader loader) throws ClassNotFoundException { Class<?> caller = null; SecurityManager sm =

2022-02-12 20:23:13 426

原创 进入老年代阈值

初始_tenuring_thresholdproduct(uintx, MaxTenuringThreshold, 15, \ "Maximum value for tenuring threshold")DefNewGenerationDefNewGeneration::DefNewGeneration(ReservedSpace rs, si

2022-02-05 16:09:33 324

原创 新生代_buttom、_top、_end、_saved_mark_word

save_marks()为_saved_mark_word变量赋值为碰撞指针的_top的值genCollectedHeap.cppsave_marks()genCollectedHeap.cpp:480 调用GenCollectedHeap::save_marks()openjdk12void GenCollectedHeap::save_marks() { _young_gen->save_marks(); _old_gen->save_marks();}openj

2022-02-05 14:47:59 709

原创 copy_to_survivor_space

copy_to_survivor_spacedefNewGeneration.cpp784copy_to_survivor_spaceoop DefNewGeneration::copy_to_survivor_space(oop old) { assert(is_in_reserved(old) && !old->is_forwarded(), "shouldn't be scavenging this oop"); size_t s = old-&

2022-02-05 14:19:48 486

原创 MutexLocker ml(Heap_lock);

常见写法jvm源码有很多这种类型写法的代码MutexLocker ml(Heap_lock);ObjectWaiter node(Self);等这里以MutexLocker举例MutexLocker ml(Heap_lock);MutexLockerclass MutexLocker: StackObj { private: Monitor * _mutex; public: MutexLocker(Monitor * mutex) { // MutexLocker ml(He

2022-02-04 20:57:06 292

原创 垃圾回收之collection_attempt_is_safe

DefNewGeneration::collectvoid DefNewGeneration::collect(bool full, bool clear_all_soft_refs, // todo soft size_t size, bool is_tlab) { ...... /

2022-01-28 17:09:29 404

汇编软件 包含DOSBox0.74-3-win32-installer

汇编软件 包含DOSBox0.74-3-win32-installer

2022-05-22

Dosbox0.74-3

Dosbox0.74-3

2022-05-22

canal.1.1.5包

canal.deployer-1.1.5.tar canal.admin-1.1.5.tar canal.deployer-1.1.5.tar canal.example-1.1.5.tar

2022-05-08

eclipse.paho.ui.app-1.0.2.win32.x86_64.zip

mqtt客户端测试工具

2021-12-03

org.eclipse.paho.ui.app-1.0.2-win32.x86_64.zip.zip

mqtt测试工具

2021-12-02

seata-server-1.4.2.zip

seata-server-1.4.2

2021-07-14

jdk-8u172-linux-x64.zip

linux版的jdk8

2021-07-14

sentinel-dashboard.jar

version: 1.8.1

2021-03-24

java8-261.zip

jdk-8u261-windows-x64

2021-03-07

EasyConnectInstaller

EasyConnect 7.6.7.0

2021-01-10

Git-2.30.0-64-bit

Git-2.30.0-64-bit

2021-01-04

Git-1.9.5-preview20150319

Git-1.9.5-preview20150319

2021-01-04

Jaspersoft Studio 6官方文档

IBCO Jaspersoft Studio User Guide Jasperreport6官方文档

2020-12-01

mysql5.7文档

mysql5.7文档

2020-11-09

seata-server-1.2.0.tar.gz

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

2020-06-29

navicat_premium12

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

2019-02-25

清理日志脚本

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

2018-11-11

java reflection action

java reflection action

2014-11-22

Learning Vi and Vim

learning the vi and vim

2014-11-17

ios7_4h.pdf

ios object-c apple programming

2014-11-06

java7 concurrency

java thread concurrency

2014-11-06

Head First Design Patterns

Head First Design Patterns

2014-11-03

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

learning junit good book

2014-10-29

Instant_Mock_Testing_with_PowerMock

tesunit junit easymock PowerMock

2014-10-29

grails 文档

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

2013-11-13

how to learn bash third edition

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

2009-03-14

空空如也

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

TA关注的人

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