SpringSecurity - Authentication + Authorization Code Implementation

Authentication + Authorization Code Implementation Spring Security is a security framework based on Spring AOP and Servlet filters.It provides a comprehensive security solution while handling authentication and authorization at the Web request and method call levels. Previously, I blogged about the theory of authentication and authorization ...

Added by john_nyc on Thu, 04 Jun 2020 04:08:57 +0300

Talk about puma's DefaultTaskExecutor

order This paper focuses on puma's DefaultTaskExecutor TaskExecutor puma/puma/src/main/java/com/dianping/puma/taskexecutor/TaskExecutor.java public interface TaskExecutor extends LifeCycle { boolean isStop(); boolean isMerging(); void stopUntil(long timestamp); void cancelStopUntil(); void setContext(PumaContext context ...

Added by tsg on Wed, 03 Jun 2020 19:14:37 +0300

Handwritten implementation of IOC and AOP through a case of bank transfer

I was asked hundreds of times about IoC and AOP in my last interview, and I was still silly and confused?We understand the two ideas of IOC and AOP. Next, let's not consider how Spring achieves these two ideas. First, through a case of bank transfer, we analyze the code level problems in this case.Use our existing knowledge to solve these prob ...

Added by mrskhris on Tue, 02 Jun 2020 14:16:52 +0300

Some understanding of countDownLatch

1. Background: countDownLatch was introduced in Java 1.5, along with CyclicBarrier, Semaphore, concurrentHashMap and BlockingQueue. Exists in java.util.cucurrent Under the bag.   2. Concept countDownLatch is a class that enables a thread to wait for other threads to complete their execution before executing. It is impl ...

Added by ChrisF79 on Mon, 01 Jun 2020 17:51:17 +0300

Inner class and static inner class in Java

Static inner class in Java: add the static modifier before the defined inner class. At this time, the inner class is the static inner class. Through an example to understand the characteristics of static inner classes. public class Outer { //Define an instance variable and a static variable private int a; private static int b; ...

Added by danlayton00 on Mon, 01 Jun 2020 17:15:53 +0300

Cao Gong said Mini Dubbo -- analyze the source code of eureka client and try to register our service provider with eureka server

preface eureka is an important component of the spring cloud Netflix technology system, which mainly completes the function of service registration and discovery. Now there is a problem, the rpc service we wrote by ourselves, if we want to ensure enough openness and function perfection, we must support various registration centers. At present, ...

Added by Zoud on Mon, 01 Jun 2020 12:55:50 +0300

MacBook Pro builds maven environment to download jar package

Today, I want to use itext's jar package. I went to the official website and found that I can only download it with maven, but I changed my phone number before. I can't help it. Please try to set up Maven again. Record here and share it or find it in the future The first choice is to make sure that the jdk is installed on your environment. If n ...

Added by wizzkid on Sun, 31 May 2020 18:19:59 +0300

Introduce mybatis-plus to report an Invalid bound statement error. Move your finger to change one place

error Mybatis-Plus (MP) is an enhancement tool for mybatis. On the basis of mybatis, only enhancements are made without changes, which simplifies the development efficiency.This is to help us encapsulate some simple curd methods that can be called directly without rewriting these simple sql statements, just like JPA. A new project was created t ...

Added by zenix on Thu, 28 May 2020 06:02:40 +0300

Java creates multi-level grouping, collapses or expands grouping in Excel

This paper introduces the method of creating grouping in Excel by Java program, which can group rows or columns and set whether to expand or collapse detailed data. When you set up data groups and expand or collapse them, you can do the following:Method 1:Method of adoption sheet.groupByRows(int firstRow, int lastRow, boolean isCollapsed) shee ...

Added by sportryd on Wed, 27 May 2020 17:32:25 +0300

Consumption mode of consumer of pulsar

client processing logic ConnectionPool netty related configurations are available in com.yahoo.pulsar.client.impl.ConnectionPool public ConnectionPool(final PulsarClientImpl client, EventLoopGroup eventLoopGroup) { this.eventLoopGroup = eventLoopGroup; this.maxConnectionsPerHosts = client.getConfiguration().getConnection ...

Added by Nothsa on Wed, 27 May 2020 14:04:46 +0300