Basic operation of shiro based on springboot

Shiro execution logic Application Code: written applicationSubject: subject, which represents the current "user". This user is not necessarily a specific person. Anything interacting with the current application is a subject, such as web crawler, robot, etc; An abstract concept; All subjects are bound to SecurityManager, and al ...

Posted by marian on Thu, 03 Feb 2022 14:58:35 +0100

SpringCloud Day08 -- message driven (SpringCloud Stream)

11. Spring cloud stream message driven 11.1 message driven overview 11.1.1 what is it? Officially, Spring Cloud Stream is a framework for building message driven microservices. The application interacts with the binder object in Spring Cloud Stream through inputs or outputs. We configure binding, and the binder object of Spring Cloud St ...

Posted by VinzC on Thu, 03 Feb 2022 13:54:37 +0100

C language minesweeping games

I Rules of the game Eliminate all the grids that are not bombs on a 9x9 small chessboard. If you step on one of the 10 mines, the game ends. If you don't step on it, judge the location of the surrounding 3x3 grid mines according to the information on the stepped grid until there are 10 mines left. II Basic logic 1. Print menu 2. Initi ...

Posted by Brenden Frank on Thu, 03 Feb 2022 13:08:32 +0100

Implementation principle of springboot @Cacheable

1. Use of springboot cache a.pom introduce jar spring-boot-starter-cache b.Add annotation to startup class@EnableCaching c.Add annotations to the methods that need to be cached @Cacheable(cacheNames = "com:xxx",key = "''+#id") Figure 1 2. Implementation principle of cacheable What is the implementation principle? The first reaction ...

Posted by plasmagames on Thu, 03 Feb 2022 12:24:48 +0100

python iterates over objects, iterators, and generators

python iterates over objects, iterators, and generators 1, Introduction 1. About iterators and generators As for the two concepts of iterator and generator in Python, most programmers think they are similar in function. In the official documents of python, iterators are sometimes regarded as generators. In fact, there are some difference ...

Posted by Scriptor on Thu, 03 Feb 2022 12:09:46 +0100

go language foundation ------ 15 ------ reflection

1 reflect 1) Definition of reflection: in computer science, reflection refers to the access, detection and repair of computer programs at Run time An ability to change its own state or behavior. Figuratively speaking, reflection is that the program can "observe" and repair when running Change your behavior. 2) The meaning of go ref ...

Posted by nipsilanti on Thu, 03 Feb 2022 09:24:53 +0100

Detailed explanation of JDK9 responsive flow

In the above, we briefly mentioned that the static internal class in the Flow interface in JDK9 implements the JAVA API of responsive Flow, and provides a Publisher implementation class SubmissionPublisher. This article will first sort out the specific processing Flow in the interface, and then use several examples of callers to help you unders ...

Posted by roonnyy on Thu, 03 Feb 2022 06:25:51 +0100

C + + review 1: some concepts

Theoretical knowledge Finite state machine Finite state machine is a tool for object behavior modeling. Its main function is to describe the state sequence experienced by an object in its life cycle and how to respond to various events from the outside world. Understanding finite state machine in simple terms Memory model C is divided i ...

Posted by zudo on Thu, 03 Feb 2022 06:16:01 +0100

Summary of basic knowledge points of Golang language

Summary of basic knowledge of Golang language 1.go language has two types: Value type: numeric type, bool, string, array, struct structure Variables store values directly. Memory is usually allocated in the stack. Modifying the value will not affect the source objectReference types: pointer, slice, pipe, chan, map, interface The variable stor ...

Posted by Harbinger on Thu, 03 Feb 2022 03:59:16 +0100

How to solve the Chinese garbled code transmitted by springboot parameters

How to solve the Chinese garbled code transmitted by springboot parameters preface This case comes from a business scenario of a business department. Their business scenario is that their department has developed a microservice context transparent component, and its transparent principle is also very simple. That is, the request parameters ar ...

Posted by bibby on Thu, 03 Feb 2022 01:41:35 +0100