- 博客(10)
- 收藏
- 关注
原创 Lamdba表达式
1.BigDecimal求和BigDecimal winBidTotalPrice = notBargainList.stream().map(BidSupplierProjectItem::getDealTotalPrice).reduce(BigDecimal.ZERO, BigDecimal::add);2.String合并String str = bidSubFileList.stream().map(BidSubFile::getFileName).reduce("", St...
2022-04-11 14:32:02
197
原创 Linux 环境安装 mysql
1.准备好mysql压缩包 wget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz2.解压缩tar zxf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz3.复制到/usr/local/mysql文件夹下cp -r mysql-5.6.33-linux-glibc2.5-x86_64 /us...
2021-12-28 15:12:15
431
原创 Linux环境搭建单机版redis集群
1.安装redis,参考Linux安装redis 步骤_罗罗诺亚-jk的博客-CSDN博客2.准备六个文件夹 mkdir redis01~063.把redis.conf文件复制到文件夹下 cp redis.conf /usr/local/redis-cluster/redis01/4.修改redis.conf文件 a.端口号(7001~7006) b.修改dir ./ c.cluster-enab...
2021-12-17 23:12:36
765
原创 Linux安装redis 步骤
1、停止firewalld服务systemctl stop firewalld2、禁止firewalld开机启动systemctl disable firewalld关闭SELinuxa、临时关闭setenforce 0b、永久关闭SELinuxsed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config3、准备好redis安装包链...
2021-12-15 18:19:23
1257
原创 vim /etc/sysconfig/network-scripts/ifcfg-ens33 显示空白
编辑ifcfg-ens33提示can't open file for writing解决方法:登录root用户,即可编辑保存
2021-12-06 14:38:10
7489
1
原创 com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
使用pagehelper插件时异常5.0之后的版本使用com.github.pagehelper.PageInterceptor这个类 即改为:<plugin interceptor="com.github.pagehelper.PageInterceptor">再次报错:Cause: com.github.pagehelper.PageException: java.lang.ClassNotFoundExcept...
2021-10-20 10:31:33
1174
原创 idea根据表快速生成代码
idea根据表快速生成代码1.安装EasyCode插件2.创建springBoot项目,在idea配置数据库连接3.填写数据库用户名,密码等,点Test测试一下连通性,最后点ok即可。4.在需要生成代码的表上右键操作即可,如下:5.生成的代码如下:...
2021-10-19 15:08:45
872
原创 SpringBoot 分页插件 PageHelper启动器
1.pom中需引入spring-boot-starter下的包<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.5</version></dependency>2.在调用查询接口前加上
2021-10-14 11:20:41
192
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人