会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张什么锋
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
13
下一页
2021年5月20日
Linux安装部署Redis
摘要: 1.下载Redis 阅读原文 进入到Xshell控制台(默认当前是root根目录),输入wget 将上面复制的下载链接粘贴上,如下命令: wget http://download.redis.io/releases/redis-5.0.7.tar.gz 回车键执行,等待下载完成 2.解压并安装Red
阅读全文
posted @ 2021-05-20 10:10 张什么锋
阅读(125)
评论(3)
推荐(1)
2021年5月9日
CentOS上安装MySQL(使用国内源)
摘要: 安装环境:CentOS 7 + MySQL 5.7 使用工具:Xshell 阅读原文 使用yum的安装方式,最为快捷,但是存在的问题就是速度较慢,而且容易断掉连接。这个问题一直卡了我两天,终于可以顺利安装了。下面记录一下安装流程: 1 下载并安装MySQL官方的 Yum Repository //下
阅读全文
posted @ 2021-05-09 17:07 张什么锋
阅读(652)
评论(0)
推荐(0)
2021年4月17日
org.springframework.data.redis.RedisConnectionFailureException
摘要: application.properties 配置 spring.redis.host=192.168.59.131 spring.redis.port=6379 #spring.redis.password=root #根据需要 # Redis数据库索引(默认为0) spring.redis.da
阅读全文
posted @ 2021-04-17 11:08 张什么锋
阅读(818)
评论(0)
推荐(0)
2021年2月28日
git 添加和删除 global 的 remote.origin.url
摘要: 1 单独的仓库 添加 git remote set-url origin "https://..." git config remote.origin.url "https://..." 删除 git remote rm origin 添加 git remote --global set-url o
阅读全文
posted @ 2021-02-28 17:44 张什么锋
阅读(1768)
评论(0)
推荐(0)
2021年1月1日
Java导出CSV文件
摘要: 阅读原文 调用类 @Test public void testWrite() throws Exception { FileOutputStream fos = new FileOutputStream("E:/cjsworkspace/cjs-excel-demo/target/abc.csv")
阅读全文
posted @ 2021-01-01 11:33 张什么锋
阅读(1071)
评论(0)
推荐(0)
2020年12月27日
数字每三位加逗号的方法(包含小数)
摘要: function formatNum(str) { var newStr = ""; var count = 0; // 当数字是整数 if (str.indexOf(".") == -1) { for (var i = str.length - 1; i >= 0; i--) { if (coun
阅读全文
posted @ 2020-12-27 23:19 张什么锋
阅读(1138)
评论(0)
推荐(0)
mysql 递归查询
摘要: MySQL中实现递归查询 阅读原文 对于数据库中的树形结构数据,如部门表,有时候,我们需要知道某部门的所有下属部分或者某部分的所有上级部门,这时候就需要用到mysql的递归查询 1、创建表 DROP TABLE IF EXISTS `t_areainfo`; CREATE TABLE `t_area
阅读全文
posted @ 2020-12-27 15:17 张什么锋
阅读(308)
评论(2)
推荐(1)
2020年12月18日
Spring boot maven 打包 之后再倒入项目不可打包
摘要: Spring Boot maven 打包成引入包后,项目引入没问题到打包的时候出现 打包找不到,报错 简单来说 就是 少打包了一个可执行jar包,在 修改需要打包的 项目 的 pom.xml 修改配置如下 <build> <plugins> <plugin> <groupId>org.springf
阅读全文
posted @ 2020-12-18 13:14 张什么锋
阅读(115)
评论(0)
推荐(0)
2020年12月9日
win10怎么查看进程用的端口号
摘要: WIN+R打开运行对话框。 输入powershell打开。 执行 netstat -o 命令,参数可显示端口对应的pid。
阅读全文
posted @ 2020-12-09 14:15 张什么锋
阅读(686)
评论(0)
推荐(0)
npm 配置 国内站点 下载 源管理器
摘要: 查看 管理器 npm i nrm -g nrm ls 查看所有npm源 nrm use [name] 切块npm源 nrm test 测试所有源的网速 增加一个源 nrm add [name] [http://网址]
阅读全文
posted @ 2020-12-09 10:20 张什么锋
阅读(165)
评论(0)
推荐(0)
2020年12月8日
springboot+mybatisplus使用xml找不到mapper的解决办法
摘要: 做项目,sql语句比较复杂,所以使用了xml自定义SQL进行查询,奈何一直报错 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xx.springboot.mapper.User
阅读全文
posted @ 2020-12-08 13:25 张什么锋
阅读(4290)
评论(0)
推荐(0)
2020年12月7日
PDF转换成Word文档
摘要: 免费 转换 ! 软件 adobe acrobat x pro 下载 http://www.downza.cn/baike-soft/1240.html#mxzdz 点击安装 点击打开 PDF 文件 另存为 word 即可! 免费 好使 ! 比 **PDF专家 好太多!
阅读全文
posted @ 2020-12-07 17:36 张什么锋
阅读(83)
评论(0)
推荐(0)
2020年12月6日
Mybatis-Plus增删改查
摘要: 阅读原文 完整代码 https://github.com/pbteach/mybatis-plus-test Mybatis-plus增删改查 插入操作 方法定义 /** * 插入一条记录 * * @param entity 实体对象 */ int insert(T entity); 测试用例 pa
阅读全文
posted @ 2020-12-06 11:03 张什么锋
阅读(3898)
评论(0)
推荐(1)
2020年11月26日
Redis 常用命令
摘要: Redis 常用命令 登录 redis-cli -p 5566 -a password 检查key是否存在 EXISTS key 搜索某关键字 KSYS *4 返回一个Key所影响的vsl的类型 TYPE key 1 String 设置一个键的值 SET key value 获取一个建的值 GET
阅读全文
posted @ 2020-11-26 12:00 张什么锋
阅读(123)
评论(0)
推荐(0)
2020年10月17日
Java 获取两个List<String>中不同的数据
摘要: public static List<String> getDiffrent(List<String> list1, List<String> list2){ Map<String,Integer> map = new HashMap<String,Integer>(list1.size()+lis
阅读全文
posted @ 2020-10-17 14:18 张什么锋
阅读(3556)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
13
下一页
公告