Integrating shiro framework with spring boot and redis

Catalog Preparation Basic steps Common abnormality Preparation About shiro Three core components: Subject, SecurityManager and Realms Subject: security operation of current user or current user SecurityManage: Security Manager, which manages security operations for all users. Realms: the inte ...

Added by mobtex on Fri, 25 Oct 2019 21:58:14 +0300

Alibaba cloud deployment 3.redis

redis Download and compile wget http://download.redis.io/releases/redis-4.0.2.tar.gz tar xzf redis-4.0.2.tar.gz cd redis-4.0.2 make Startup service Start redis in the background cd redis-4.0.2/ src/redis-server & Query redis process ps -ef | grep redis You can see that redis has been started. root 19141 19065 0 12:50 pts/1 00:00:03 ...

Added by rocco2004 on Wed, 23 Oct 2019 20:00:19 +0300

In depth study of Redis, analysis of basic types [Hash]

More wonderful articles, pay attention to the public account [tobetopjava Er], more tens of thousands of excellent vip resources for free waiting for you to take!!! Next, we will analyze the basic type of Hash. I'm sure you are familiar with Hash. Next, we will go deep into the source code to analyze the implementation of Hash in Redis. First ...

Added by sullyman on Tue, 22 Oct 2019 14:02:43 +0300

Implementation of distributed Session

JWT Token Use JWT Token to store user identity, and then get other information from database or cache. In this way, it doesn't matter which server the request is assigned to. Tomcat + Redis Configure in tomcat's configuration file: <Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /> <Manager classNam ...

Added by admun on Tue, 22 Oct 2019 00:15:56 +0300

Summary of gateway current limiting

1. Common current limiting algorithms 1.1 counter algorithm Count the number of requests allowed to pass over a period of time. For example, qps is 100, that is, the number of requests allowed to pass in 1s is 100. Add 1 to each request counter. If the request is rejected more than 100, the counter will clear after 1s, and the counter will be c ...

Added by Gonwee on Sun, 20 Oct 2019 17:10:50 +0300

[source code analysis] I don't know the details of automatic configuration, let alone you can spring boot.

Compared with spring, one of the most important characteristics of spring boot is automatic configuration, which makes the Convention larger than the configuration idea successfully implemented. XXX spring boot starter a series of bootstrappers can be used out of the box, or only need a few configurations (for beginners) because the default aut ...

Added by zemerick on Thu, 17 Oct 2019 04:55:14 +0300

Spring boot integrates Redis to realize message queue publish subscription

Article directory Integrated Redis Introducing dependency Configure RedisTemplate Subscription listening class Subscriber Publisher Add listening topic Publish and subscribe test Redis has its own message queue with publish subscription mode. You only need to integrate redis in spring boot and ...

Added by aussieguy on Wed, 16 Oct 2019 21:28:50 +0300

How to delete k8s resource objects in batch

This article was first published on the public account [my little bowl soup] to scan the QR code at the end of the article for attention, exchange and study together In cloud platform development and middleware containerization, there is often a need to delete k8s resource objects in batches. Here are some examples of kubectl and golang sending ...

Added by obsidian on Wed, 16 Oct 2019 05:11:19 +0300

Source Code Analysis of Garbage Collector in kubernetes Garbage Recycler

kubernetes version: 1.13.2 background Because of the redis cluster created by the operator, the redis cluster is deleted abnormally (including the redis exporter statefullset and redis statefullset) after the kubernetes APIs server is restarted. After deletion, the operator rebuilds and reorganizes the cluster, and the instance IP changes (mi ...

Added by Whitestripes9805 on Wed, 16 Oct 2019 04:54:16 +0300

Linux development infrastructure construction

Server configuration Password free login, configure public key connection Copy the local public key to the server $ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.100.80 Replace aliyum source Replace Centos-7.repo wget http://mirrors.aliyun.com/repo/Centos-7.repo # backups mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo ...

Added by bfinucan on Tue, 15 Oct 2019 19:33:14 +0300