Deep parsing: understand how MyBatis is initialized in the Spring container

The initialization process of MyBatis is to generate some necessary objects and put them into the Spring container. The question is what objects are generated by this process? When MyBatis initialization fails, how to correctly find the entry point to analyze the problem? This paper will introduce these problems. Based on MyBatis 3 and Spr ...

Posted on Sun, 05 Dec 2021 07:13:01 -0500 by sxiix

Chapter 17 of in-depth understanding of Spring Cloud and microservice construction uses Spring Cloud OAuth2 to protect microservice systems

Chapter 17 of in-depth understanding of Spring Cloud and microservice construction uses Spring Cloud OAuth2 to protect microservice systems 1, What is OAuth2 OAuth2 is a standard authorization protocol. OAuth2 replaces the work of OAuth1 created in 2006. OAuth2 is not compatible with OAuth1, that is, OAuth1 is completely abandoned. OAuth2 ...

Posted on Fri, 03 Dec 2021 06:26:51 -0500 by behicthebuilder

Multithreaded learning one

Multithreaded learning one 1 Overview In general, we don't need to contact concurrency, but we can't just be a CRUD master. We still need to strengthen our skills. The better the technology, the smoother the road behind. New generation farmers and famous workers, let's study together! This content comes from the dark horse programmer of stati ...

Posted on Tue, 30 Nov 2021 19:13:45 -0500 by Qlubbie

Microservice SpringCloud Alibaba ------Sentinel

1. Service avalanche The unavailability of service providers leads to the unavailability of service callers and gradually enlarges the unavailability, which is called service avalanche effect. When the service provider is unavailable, there will be a large number of retries: user retries and code logic retries. These retries will eventuall ...

Posted on Mon, 29 Nov 2021 13:27:40 -0500 by GinsBabu

Echo framework: log configuration management

introduceThrough a complete example, manage logs reasonably in the Echo framework.What are the usage scenarios?Log auto scroll Split into multiple log files Log format modification waitWe will use rk-boot To start the microservice of the Echo framework.Please visit the following address for a complete tutorial:https://rkdocs.netlify.app/cnin ...

Posted on Sun, 28 Nov 2021 19:16:53 -0500 by sheen.andola

SpringCloud microservice practice -- build an enterprise level development framework: Gateway+OAuth2+JWT to realize unified authentication and authorization of microservices

   OAuth2 is an open standard on authorization. The core idea is to authenticate the user's identity through various authentication means (which means OAuth2 doesn't care about) and issue a token so that third-party applications can use the token to access specified resources within a limited time and range.    in OAuth2, th ...

Posted on Fri, 26 Nov 2021 06:48:59 -0500 by copernic67

SpringCloud microservice practice -- building an enterprise development framework: realizing multi tenant function based on MybatisPlus plug-in TenantLineInnerInterceptor

Basic concepts of multi tenant Technology: Multi tenancy Technology (English: multi tenancy Technology), or multi tenancy technology, is a software architecture technology. It discusses and implements how to share the same system or program components in a multi-user environment, and can still ensure the isolation of data among users.   wi ...

Posted on Fri, 26 Nov 2021 06:43:26 -0500 by kazer

Serverless and microservice exploration - SpringBoot project deployment practice

prefaceAfter sharing the last article, some fans responded that the content was too theoretical and abstract to see the actual appearance.Therefore, I will write a tutorial here to teach you how to deploy a SpringBoot project to Serverless and test it successfully.The following link is my official article, but the official article will be consi ...

Posted on Wed, 24 Nov 2021 16:28:13 -0500 by saltedm8

Semaphorer & CountDownLatch & CyclicBarrier in AQS

1, Introduction to Semaphore Semaphore, commonly known as semaphore, is the java implementation of PV operation primitive in operating system. It is also based on AbstractQueuedSynchronizer. Semaphore is very powerful. Semaphores with a size of 1 are similar to mutexes, which can be achieved by only one thread obtaining semaphores at the ...

Posted on Mon, 22 Nov 2021 17:58:11 -0500 by jimbo2150

Microservice invocation component Feign

How to implement interface call in Java project 1>Httpclient Httpclient is a sub project under Apache Jakarta Common, which is used to provide an efficient, up-to-date and feature rich client programming toolkit supporting HTTP protocol, and it supports the latest version and recommendations of HTTP protocol. Compared with the URLConnec ...

Posted on Sun, 21 Nov 2021 15:13:37 -0500 by margarette_a