自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(92)
  • 资源 (2)
  • 收藏
  • 关注

原创 git rebase 合并分支

合并分支完成后,其他同事拉去命令(重点千万不要用merge)使用git rebase 合并分支。

2024-04-26 11:00:25 23

原创 VisualVM 启动报错Error Starting VisualVM:You are running VisualVM using Java Runtime Environment(JRE).

没有正确配置JDK的目录。:wq 保存退出就生效啦。

2022-09-14 13:06:27 656 4

原创 Kafka安装与使用

Kafka安装与使用

2022-07-15 17:02:48 470

原创 Nginx 安全配置

Nginx 安全配置Nginx禁用隐藏文件 location ~ /\. { deny all; }

2022-02-15 10:39:46 1549

原创 异或算法(1)

异或算法 1给你一个长度为 n 的数组,其中只有一个数字出现了奇数次,其它均出现偶数次。问如何找到这个数字。public int find(int[] nums) { int result = nums[0]; for (int i = 1; i < nums.length; i++) { result ^= nums[i]; } return result;}...

2022-01-31 19:24:28 942

原创 摩尔投票算法

摩尔投票算法给你一个长度为 n 的数组,其中只有一个数字出现了大于 n/2 次,问如何快速找到这个数字。第一种写法public int find(int[] nums) { int count = 1; int result = nums[0]; for (int i = 1; i < nums.length; i++) { count = result == nums[i] ? ++count : --count; if (count =

2022-01-31 19:16:13 721

原创 SpringBoot实现 Excel导出接口,Axios下载乱码问题

SpringBoot 实现 Excel导出接口,Axios 下载乱码问题背景:使用Easypoi生成 .xlsx格式的Excel文档后端实现代码response.setCharacterEncoding("UTF-8");response.setHeader("Access-Control-Expose-Headers","Content-Disposition");// 错误的//response.setHeader("Content-Type", "application/vnd.ms-ex

2021-11-26 22:59:27 1879

原创 JMeter 设置-Djava.net.preferIPv4Stack=true

JMeter 设置-Djava.net.preferIPv4Stack=trueexport JVM_ARGS="-Djava.net.preferIPv4Stack=true"vim 打开 apache-jmeter-5.4.1/bin/jmeter 文件,在最后面加上命令。由于我的VPN网络只支持 IPv4。

2021-08-20 16:32:34 1918

原创 Sentinel 配置文件源码分析SentinelConfig

Sentinel 配置文件源码分析SentinelConfigcom.alibaba.csp.sentinel.config.SentinelConfigcom.alibaba.csp.sentinel.config.SentinelConfigLoader

2021-08-03 13:51:51 601

原创 Sentinel NacosDataSource源码解析

Sentinel NacosDataSource源码解析官网代码public static final String NAMESPACE = "user-space";public static final String FLOW_POSTFIX = "-flow-rules";// Register cluster flow rule property supplier which creates data source by namespace.ClusterFlowRuleManager.s

2021-08-02 11:57:39 468

原创 鸿蒙 adb连接不上真机解决办法

adb kill-serveradb devices先杀死adb服务,DevEco-Studio IDEA自动重启adb。重新连接真机即可。

2021-07-30 12:44:02 5302

原创 Spring Banner图

https://www.bootschool.net/ascii-art/search

2021-05-10 15:56:53 224

原创 Docker 官网安装实践

Docker 官网安装实践Docker 产品手册安装命令实践# yum install -y yum-utils....省略....更新完毕: yum-utils.noarch 0:1.1.31-54.el7_8

2021-04-29 15:51:49 277

原创 Docker 查看容器 IP 地址

Docker 查看容器 IP 地址docker inspect --format='{{.NetworkSettings.IPAddress}}' [容器ID 或 NAMES]liukeruideMacBook-Pro:~ liukerui$ docker inspect --format='{{.NetworkSettings.IPAddress}}' 9023db627623172.17.0.2liukeruideMacBook-Pro:~ liukerui$ ...

2021-04-28 16:51:06 558

原创 了解Maven的<relativePath/>标签

了解Maven的 relativePath标签 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.3</version> <relativePath/> &l

2021-02-21 17:00:30 8107

原创 Mac TypeScript npm安装

Mac TypeScript npm安装npm install -g typescriptliukeruideMacBook-Pro:/ liukerui$ npm install -g typescript/usr/local/bin/tsc -> /usr/local/lib/node_modules/typescript/bin/tsc/usr/local/bin/tsserver -> /usr/local/lib/node_modules/typescript/bin/tsse

2021-02-07 11:13:01 613

原创 Visual Studio Code 设置字体

Visual Studio Code 设置字体编辑字体大小编辑字体大小或

2021-02-04 16:57:14 1341

原创 鸿蒙Harmony 拖动监听DraggedListener

鸿蒙Harmony 拖动监听DraggedListener效果图源码地址https://gitee.com/liukerui/harmony-app-examples.git

2021-01-29 23:44:09 641

原创 鸿蒙Harmony 设置状态栏颜色

鸿蒙Harmony 设置状态栏颜色 @Override public void onStart(Intent intent) { Window window = getWindow(); window.setStatusBarColor(Color.BLACK.getValue()); window.setStatusBarVisibility(Component.VISIBLE); super.onStart(intent);

2021-01-26 17:50:16 7205 1

原创 SpringBoot 注解ConditionalOnProperty的使用

SpringBoot 注解ConditionalOnProperty的使用package org.springframework.boot.autoconfigure.condition;import java.lang.annotation.Documented;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPo

2020-12-18 10:57:40 185

原创 SQL命令查看Mysql数据库使用大小

SQL命令查看Mysql数据库使用大小information_schema 数据库存放了其它的数据库的信息use information_schema;查询所有数据的大小:select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables;查看指定数据库的大小:select concat(round(sum(data_length/1024/1024),2),'MB') as data from ta

2020-12-17 11:09:14 145

原创 IntelliJ IDEA 关闭自动更新检查

IntelliJ IDEA 关闭自动更新检查

2020-11-05 15:41:10 983

原创 SpringBoot 数据库配置

SpringBoot 数据库配置pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency&gt

2020-11-03 17:00:29 151

原创 Git 回滚Rollback

Git 回滚Rollback撤销修改撤销修改工作区放弃修改use "git checkout -- <file>..." to discard changes in working directory暂存区撤销添加use "git reset HEAD <file>..." to unstage# 继续回到修改前内容$ git checkout -- <file>......

2020-11-02 14:40:13 4613

原创 Git 分支git-merge合并和git-rebase变基的使用

Git 分支git-merge合并和git-rebase变基的使用git merge <branch> A---B---C topic / D---E---F---G master$ git checkout master$ git merge topic A---B---C topic / \ D---E---F---G---H mastergit rebase <upstream>

2020-10-30 15:36:33 258

原创 Git 远程多分支git-fetch拉取到本地

Git 远程多分支git-fetch拉取到本地远程代码仓库有分支master hotfix release develop feature初始化并且关联远程仓库获取master分支$ git pull origin master查看本地仓库全部分支liukeruideMacBook-Pro:ps liukerui$ git branch -a* master remotes/origin/master如何在拉取远程hotfix分支如果继续使用git pull origin hotfi

2020-10-30 14:11:05 551

原创 对比 git pull和 git pull --rebase的使用区别

对比 git pull和 git pull --rebase的使用区别首选区别这两个操作git pull = git fetch + git merge FETCH_HEAD git pull --rebase = git fetch + git rebase FETCH_HEAD 现在来看看git merge和git rebase的区别远程分支master,两位同学"77"和"88" 分别克隆创建本地仓库work77和work88。 work77 / A-

2020-10-29 13:24:37 489

原创 git add . 和 git add -u 的区别 Git(2.x版本)

git add . 和 git add -u 的区别 Git 2.x版本`Git 2.x版本`Git 2.x版本git add .添加当前目录和子目录下相应(新增、更新、删除)文件。并且会根据.gitignore做过滤。git add -u添加当前目录和子目录下相应(更新、删除)文件。PS网上很多 git add . 和git add -u 和 git add -A 和 git add * 的区别的帖子。一定要注意Git版本。知道 git add .就解决99.99%问题了,其它可以暂时忽略

2020-10-28 19:29:34 148

原创 Git 简易命令教程

Git 全局设置git config --global user.name "liukerui"git config --global user.email "[email protected]"创建本地 git 仓库:mkdir vueh5cd vueh5git init //或者 git init vueh5关联远程仓库git remote add origin https://gitee.com/liukerui/vueh5.git

2020-10-28 17:55:18 75

原创 Mac nrm安装与使用

Mac nrm安装与使用安装使用查看npm镜像源切换镜像源增加定制源删除源测试速度nrm(npm registry manager )是npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在 npm 源间切换安装$ npm install -g nrm // 全局安装nrm使用查看npm镜像源liukeruideMacBook-Pro:~ liukerui$ nrm ls* npm -------- https://registry.npmjs.org/

2020-10-26 19:47:23 2043

原创 Mac npm命令使用

Mac npm命令使用安装$ npm install xxx // 本目录安装$ npm install -g xxx // 全局安装安装cnpmnpm install -g cnpm --registry=https://registry.npm.taobao.org清除Node.js的cache$ npm cache clean -f自我更新到最新版本$ npm install npm@latest -g //

2020-10-26 19:08:17 1822

原创 Mac Vue 环境搭建(vue-cli、webpack)

Mac Vue 环境搭建前言安装 `npm`由于网络原因 安装 `cnpm`安装 `vue-cli`安装 `webpack`前言Mac Node.js安装(包含npm)安装 npmnpm 全称为 Node Package Manager,是一个基于Node.js的包管理器,也是整个Node.js社区最流行、支持的第三方模块最多的包管理器。npm -v由于网络原因 安装 cnpmnpm install -g cnpm --registry=https://registry.npm.taobao

2020-10-26 18:39:40 227 1

原创 Nginx Mac安装配置

Nginx Mac安装配置Homebrew安装启动卸载Homebrew安装$ brew install nginx安装目录:/usr/local/Cellar/nginxnginx文件软链接至:/usr/local/bin/nginx/usr/local/bin/nginx -> /usr/local/Cellar/nginx/1.19.3/bin/nginx配置文件:/usr/local/etc/nginx网站根目录:/usr/local/var/www查看安装信息$

2020-10-26 15:29:02 96

原创 HBuilderX 从Git导入

HBuilderX 从Git导入MACMAC备注:导入项目本地路径文件夹必须为空或者不存在。

2020-10-23 14:34:18 497

原创 Visual Studio Code 安装

Visual Studio Code 安装官网地址下载解压官网地址https://visualstudio.microsoft.com/zh-hans/下载解压

2020-07-21 11:48:54 85

原创 Spring MethodInterceptor 实现(注解+SpEL表达式)源码级AOP功能

Spring MethodInterceptor 实现注解+SpEl表达式AOP功能StaticMethodMatcherPointcut核心功能点:今天太晚了,明天补全。 class MethodAspectMetadataSourcePointcut extends StaticMethodMatcherPointcut implements Serializable { public boolean matches(Method m, Class targetClass) {

2020-07-12 02:15:41 877

原创 SpringBoot 分析 @EnableGlobalMethodSecurity注解 GlobalMethodSecurityConfiguration源码

SpringBoot 分析 @EnableGlobalMethodSecurity注解 GlobalMethodSecurityConfiguration源码GlobalMethodSecurityConfigurationMethodSecurityInterceptorMethodSecurityExpressionHandlerDefaultMethodSecurityExpressionHandler总结GlobalMethodSecurityConfiguration实例字段 private

2020-07-09 18:29:06 1248

原创 IDEA 新建SpringBoot项目

IDEA 新建SpringBoot项目

2020-06-10 16:23:13 106

原创 Redis 新手入门(安装,编译,运行,可视化工具和插件)

Redis 新手入门(安装,编译,运行,可视化工具和插件)官网安装idea 可视化插件官网Redis 中文官网安装Redis 下载快速入口备注:解压到什么目录安装到什么目录都没有要求,看自己。命令工具都在 src 目录下,方便使用需要配置环境变量。redis.conf 配置文件1、Redis 默认启动是没有守护进程的,也就是说关闭命令行窗口就结束运行了。这时我们需要配置文件。2、redis.conf 文件在压缩文件根目录下。为了方便使用复制一份到 /etc/redis.conf3、修改参

2020-05-26 10:49:49 255

原创 SpringBoot 多数据源配置分析

SpringBoot 多数据源配置分析前言application.properties 方式配置bean.xml 方式配置多数据源设置默认数据源前言我们配置主从数据源的时候,就需要多数据源配置。application.properties 方式配置#数据库连接 Masterspring.datasource.master.username=rootspring.datasource.master.password=12345678spring.datasource.master.jdbc-ur

2020-05-25 11:40:41 347

jdk-8u201-macosx-x64.dmg

1、系统:Mac Interl 2、版本:jdk-8u201-macosx-x64.dmg 3、MD5:e8cdb10cc415913ed0c3941531d7a547

2022-07-18

mysql-8.0.22-macos10.15-x86_64.dmg

Mac MySql安装(10.14兼容) 安装教程:https://blog.csdn.net/lkr_lkr/article/details/104060553

2020-12-17

空空如也

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

TA关注的人

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