springboot redis

easypoi基于springboot实现多sheet导出

maven <dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-spring-boot-starter</artifactId> <version>4.4.0</version> </dependency> service ......
springboot easypoi sheet

springboot自动装配

原理 spring通过属性加载器将starter依赖包中META-INF目录下spring.factories文件里key=org.springframework.boot.autoconfigure.EnableAutoConfiguration对应value加载进来, 然后通过反射实例化并注入到 ......
springboot

redis rdb-bigkeys安装和使用

先安装go 下载地址:wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz 解压:tar -zvxf go1.12.6.linux-amd64.tar.gz 配置环境变量: vi /etc/profile 加入一下内容 #GO expor ......
rdb-bigkeys bigkeys redis rdb

day12-SpringBoot数据库操作

SpringBoot数据库操作 1.JDBC+HikariDataSource 在SpringBoot 2.x项目中,默认使用Hikari连接池管理数据源。相比于传统的 C3P0 、DBCP、Tomcat jdbc 等连接池更加优秀。 当项目pom.xml引入spring-boot-starter- ......
SpringBoot 数据库 数据 day 12

Redis中的BigKey问题:排查与解决思路

本文已收录至Github,推荐阅读 👉 Java随想录 微信公众号:Java随想录 摘要 Redis是一款性能强劲的内存数据库,但是在使用过程中,我们可能会遇到Big Key问题,这个问题就是Redis中某个key的value过大,所以Big Key问题本质是Big Value问题,导致Redis ......
思路 BigKey 问题 Redis

在docker上安装MySQL和Redis

1. 通过docker命令下载mysql5.7镜像 mysql5.7前期准备 2. 通过docker命令下载mysql8.0镜像 mysql8.0前期准备 3. 通过docker命令下载redis镜像 redis前期准备 本文永久更新地址: 1. 通过docker命令下载mysql5.7镜像 mys ......
docker MySQL Redis

Centos7安装redis

redis是一个在内存中存储数据的工具,可以用作缓存,数据库,和消息代理。 安装 centos7中安装redis,步骤如下: 官网下载redis压缩包,地址https://redis.io/,下载后的压缩包为:redis-6.2.5.tar.gz。(安装包的版本可以根据自己需求选择,我下载的是官网的 ......
Centos7 Centos redis

SpringBoot集成海康网络设备SDK

SDK介绍 概述 设备网络SDK是基于设备私有网络通信协议开发的,为嵌入式网络硬盘录像机、NVR、网络摄像机、网络球机、视频服务器、解码器、报警主机、网络存储等产品服务的配套模块,用于远程访问和控制设备软件的二次开发。 功能 图像预览, 文件回放和下载, 云台控制, 布防/撤防, 语音对讲, 日志管 ......
网络设备 SpringBoot 设备 网络 SDK

GO实现Redis:GO实现内存数据库(3)

实现Redis的database层(核心层:处理命令并返回) https://github.com/csgopher/go-redis datastruct/dict/dict.go type Consumer func(key string, val interface{}) bool type ......
内存 数据库 数据 Redis

springboot配置ActiveMQ

@Configuration public class ActiveMQConfig { @Bean public JmsTemplate jmsTemplate(ConnectionFactory connectionFactory) { JmsTemplate jmsTemplate = new ......
springboot ActiveMQ

16-springboot关于输出日志的修改

关闭spring logo图标 日志输出: SpringApplication springApplication = new SpringApplication(SpringBootConsoleApplication.class); springApplication.setBannerMode ......
springboot 日志 16

17-springboot整合第三方框架三部曲

一个规律,那就是springboot整合第三方框架或组件,都是通过三步来完成: 第一步:添加依赖; 第二步:配置application.properties文件; 第三步:编写代码,可能用到一些注解; ......
三部曲 第三方 springboot 框架 17

15-springboot创建非web应用

在 Spring Boot 框架中,要创建一个非Web应用程序(纯Java程序): 方式一: 1、SpringBoot开发纯Java程序,应该采用如下的起步依赖: <!-- Springboot开发java项目的起步依赖 --> <dependency> <groupId>org.springfra ......
springboot web 15

windows安装redis及配置教程

windows安装redis及配置教程,附网盘资源 链接:https://pan.baidu.com/s/1KvcyY27_q7aI2hQ7QRsEGA?pwd=iidx 一、windows系统安装及配置 解压文件,准备开始配置、安装服务。 1.1、注册redis的windows服务 在该文件夹中打 ......
windows 教程 redis

.net Redis工具类

新建RedisCache缓存类库 代码如下: RedisHelper: 1 using FBW.RedisCache.Service; 2 using Newtonsoft.Json; 3 using StackExchange.Redis; 4 using System; 5 using Syst ......
工具 Redis net

springBoot,springCode项目 java 读取Excel 文件操作

导入的文件 前端点击上传得到文件(MultipartFile file 【这里是存放的临时文件】) 本人前端用的vue3,elementui, 导入按钮代码 <!--导入文件 --> <el-col :span="1.5"> <el-button type="info" plain icon="el ......
springBoot springCode 文件 项目 Excel

交叉编译redis服务,并设置开机自启动

交叉编译需要下载redis源码 1、下载源码 源码可以前往redis下载链接 2、源码解压 tar zxvf 7.0.2.tar.gz 3、输入命令 cd redis-7.0.2/ make distclean make clean 4、编译 交叉编译指令如下 make MALLOC=libc CC ......
redis

14-springboot配置文件

1、.properties文件 键值对的properties属性文件配置方式 SpringBoot默认读取该文件作为项目配置文件 2、.yml文件 yml 也是一种配置文件格式,主要采用空格、换行、冒号等格式排版进行配置; yml 后缀也可以使用 yaml 后缀; 配置的值与前面的冒号必须要有一个空 ......
springboot 文件 14

Redis单机部署

Redis单机部署 一、安装gcc工具 gcc -v查看本机是否安装gcc、如未安装则yum -y install gcc-c++ 若已安装需看gcc版本是否与redis兼容(4版本gcc最多支持5版本的redis) 二、安装Rdis-5.0.12 准备安装包(本次使用5.0.12版本) tar z ......
单机 Redis

Springboot 撞上 NebulaGraph——NGbatis 初体验

NGbatis 是一款针对 NebulaGraph + Spring Boot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。包含了一些类似于 mybatis-plus 的单表操作,另外还有一些图特有的实体-关系基本操作。 ......
NebulaGraph Springboot NGbatis

redis key的一些常用命令

1,删除key del key 2,检查key是否存在 exists key 3,为key设置过期时间,以秒计 expire key seconds 4,为key设置过期时间,参数是时间戳 expireat key timestamp 5,为key设置过期时间,已毫秒计 pexpire key mi ......
命令 常用 redis key

Linux手动安装Redis

安装 下载、解压、编译Redis $ wget http://download.redis.io/releases/redis-6.0.6.tar.gz $ tar xzf redis-6.0.6.tar.gz $ cd redis-6.0.6 $ make 进入到解压后的 src 目录,通过如下命 ......
手动 Linux Redis

springboot应用瘦身

1、将依赖的jar包存放到其他路径 mvn dependency:copy-dependencies -DoutputDirectory=lib_path -DincludeScope=runtime 2、在pom文件添加插件属性属性 <plugin> <groupId>org.springfram ......
springboot

c# redis系列二

Hash Hash:key--Dictionary, 1 节约空间(zipmap的紧密摆放的存储模式) 2 更新/访问方便(hashid+key) Hash数据很像关系型数据库的表的一行数据, 但是字段是可以随意定制的,没有严格约束的,非常灵活 如果说我们要存储一个模型,如果还是存储string类型 ......
redis

c# redis系列一

NoSql Not Only Sql非关系型数据库 由于关系型数据库中数据的关系复杂 ,再就是数据读取和写入压力,硬盘的速度满足不了,尤其是一些大数据量 所以产生了NoSql了,比如Redis。 Redis Redis特点 (1)是基于内存的,关系型数据库则是存到硬盘中的。 (2)没有严格的数据格式 ......
redis

redis面试

https://blog.csdn.net/zps925458125/article/details/115258374 https://blog.csdn.net/Design407/article/details/105274226?utm_medium=distribute.pc_releva ......
redis

dockerfile部署vue+springboot+redis

后端部署: 一、拉取并启动redis镜像 1、在服务器/usr/local/etc/redis/文件目录下建立redis.conf配置文件,配置信息如下: bind 0.0.0.0 protected-mode no 2、拉取并启动最新的redis镜像,映射宿主机端口并挂载目录 docker run ......
dockerfile springboot redis vue

SpringBoot 集成 Security

SpringBoot 集成 Security Spring Security 介绍 Spring Security 是基于 Spring 框架的权限管理框架 Spring Security 的前身是 Acegi Security Acegi Security 以配置繁琐而被诟病,投入 Spring ......
SpringBoot Security

GO实现Redis:GO实现Redis协议解析器(2)

本文实现Redis的协议层,协议层负责解析指令,然后将指令交给核心database执行 echo database用来测试协议层的代码 https://github.com/csgopher/go-redis RESP协议 RESP是客户端与服务端通信的协议,格式有五种:正常回复:以“+”开头,以“ ......
Redis

什么是redis

一、redis简介 Redis 是C语言开发的一个开源高性能键值对的内存数据库,可以用来做数据库、缓存、消息中间件等场景,是一种NoSQL(not-only sql,非关系型数据库)的数据库 二、Redis特点 优秀的性能,数据是存储在内存中,读写速度非常快,可支持并发10W QPS 单线程但进程, ......
redis