1. @Import Notes
2. @Import in three ways
3. @Import Annotation Summary of Three Ways of Use
1. @Import Notes
1. @Import can only be used on classes, @Import implements adding instances to spring's IOC container by means of fast import
2. There are many ways to add IOC containers, @Impo ...
Posted by m4x3vo on Sat, 04 Jan 2020 04:35:48 +0100
1. Operation results
stay Use GetAlphaMask and ContainerVisual to make Long Shadow In this article, I introduced a tomato clock with long shadows. This tomato clock uses a flip picture when switching states. As shown above, it also uses a spring animation. You can see that it bounces a little after flipping.I intended to write this animation ...
Posted by rinteractive on Fri, 03 Jan 2020 10:37:43 +0100
For Spring Boot reference AOP, please refer to the previous article: [original by HAVENT] use AOP of Spring Boot to record execution time log globally
Next we will use the custom annotation:
1. Define an annotation interface object first
Posted by ted_chou12 on Fri, 03 Jan 2020 06:47:33 +0100
Automatically configuring machine numbers with SnowFlake in a cluster or development environment using RedisPreface:SnowFlake Snowflake ID algorithm is a well-known distributed ID generation algorithm introduced by Telco.With pre-allocated machine IDs, workspace IDs, machine time can generate globally unique Long Type IDs that increase over tim ...
Posted by joel24 on Fri, 03 Jan 2020 06:30:40 +0100
1, Spring Data JPA
(1) Official website address: https://spring.io/projects/spring-data-jpaReference documents: https://docs.spring.io/spring-data/jpa/docs/2.2.3.RELEASE/reference/html/#preface
(2) Basic introduction:Spring Data JPA is a set of JPA framework based on ORM framework and JPA specification encapsulation of spr ...
Posted by DanAuito on Thu, 02 Jan 2020 03:24:15 +0100
In Java, resources from different sources are abstracted into URLs, and different resources ("file,http,jar") are processed by registering different handlers. By default, URLs do not have handlers relative to resources such as "classpath:" or ServletContext. Therefore, spring implements its own abstract struc ...
Posted by uniflare on Tue, 31 Dec 2019 07:22:42 +0100
No matter when you start, it's important not to stop after you start
Three SqlSession s
DefaultSqlSession and SqlSessionManager and SqlSessionTemplate are three common sqlsesion s I have
From the class diagram, you can see that all three of them have implemented SqlSession, that is, they can all represent a session.Unlike others, SqlSessionM ...
Posted by LearningKid on Tue, 31 Dec 2019 03:04:33 +0100
Sometimes we need to declare some custom servlet filters in the Spring Boot Servlet Web application to handle some logic. For example, simple permission system, request header filtering, XSS attack prevention, etc. This article explains how to declare custom servlet filters in Spring Boot applications and define their respective sco ...
Posted by lokie538 on Mon, 30 Dec 2019 10:52:03 +0100
The fuse mechanism is a self-protection mechanism. When there are a large number of requests piled up and the service is unable to handle them immediately, the fuse mechanism can decide to discard the requests to ensure that its resources are not exhausted and downtime. The fuse is usually used on the service consumers. When th ...
Posted by jjacquay712 on Thu, 26 Dec 2019 17:38:48 +0100