Spring boot integrates Shiro -- authentication and authorization

Shiro 1, introduction Apache Shiro is a Java Security (permission) framework. Shiro can easily develop good enough applications, which can be used not only in Java se environment, but also in Java EE environment. Shiro can complete authentication, authorization, encryption, session management, Web integration, caching, etc. Download address: ...

Added by BKPARTIES on Sun, 22 Mar 2020 13:59:52 +0200

Design of platform level exception framework

As important as code readability, strict awareness of exception handling is a developer's professional quality and basic skill. In the early era of J2EE technology, the tight coupling of front and back ends often results in the situation that the back end reports an error directly to the front end, that is, the page is a piece of abnormal code. ...

Added by rastem on Sun, 22 Mar 2020 13:01:55 +0200

Builder Mode of Creative Mode

1 Overview As we said earlier Factory Mode and Abstract Factory Mode , let's talk about the builder model. The builder mode is also a very common creation mode. The two factory modes mentioned earlier hide the properties and construction details of a class, while the builder mode exposes the properties of a class appropriately through the Build ...

Added by g-force2k2 on Sun, 22 Mar 2020 09:04:09 +0200

Spring Cloud Micro Service Architecture From Getting Started to Getting Used - Calling Feign Between Services

One of the most important functions of micro-services is the call between services, which depend on each other.For example, e-commerce systems have order services and inventory services.When we buy a product, we need to generate orders and reduce inventory.Here we're going to use inter-service Feign calls. Feign is a lightweight framework for H ...

Added by no_one on Sun, 22 Mar 2020 06:05:11 +0200

2D game assignment: Python image processing -- character puzzle

1. Game introduction A jigsaw puzzle divides a picture into several pieces and randomly scrambles them. When all the pieces are put back to their original positions, the puzzle is finished (the end of the game). This character puzzle game is composed of three lines and three columns. The blocks are arranged in random order. The player clicks ar ...

Added by egpis on Sat, 21 Mar 2020 12:58:00 +0200

Abstract Factory Mode for Creative Mode

1 Overview Last article Speaking of the factory method pattern, it provides a solution for creating class instances without specifying a specific implementation.So why do we need the abstract factory model? 2 Abstract Factory Mode The abstract factory model is essentially also a factory defined as an entry for class creation, which has the adva ...

Added by bhogg on Sat, 21 Mar 2020 07:53:49 +0200

Dubbo Source Learning-Service Reference (Remote Call Phase)

In the previous article, we looked at what was done during the startup phase of a Dubbo service reference, and what was not seen during the remote invocation phase.The Dubbo service invocation process is complex and involves many steps, such as sending requests, codec, service demotion, filter chain processing, serialization, thread dispatch, ...

Added by Aaron111 on Sat, 21 Mar 2020 05:19:50 +0200

Multithreading and data sharing in python

In the past, when writing multithreading and multiprocessing, because they usually complete their own tasks, each subthread or subprocess does not have much contact before. If I need to communicate, I will use queue or database to complete it. But recently, when I write some codes of multithreading and multiprocessing, I found that if they need ...

Added by Rokboy on Fri, 20 Mar 2020 17:02:01 +0200

Calling the wait()/notify() method of the Class object in the synchronized static method

Start with a sample demo using the wait()/notify() method in general public class Test { public static void main(String[] args) { Object lock = new Object();// Lock object // target thread, which will be suspended Thread target = new Thread(() -> waited(lock)); target.start(); // action thread, use this thread to wa ...

Added by morphius on Fri, 20 Mar 2020 16:15:06 +0200

Asynchronous Programming RxJava - Introduction

PrefaceWrite an article a while ago Some understanding of the equation , whether it's a collaboration or callback, it essentially provides an asynchronous, non-blocking programming mode; it also introduces java support for asynchronous, non-blocking programming mode, mainly referring to Future and CompletableFuture; after that, some classmates ...

Added by linux1880 on Fri, 20 Mar 2020 04:42:10 +0200