After using MyBatis interceptor, the fishing time is long again

scene In the development of back-end services, the popular framework combination is SSM (SpringBoot + Spring + MyBatis). When we develop some business systems, there will be many business data tables, and the information in the tables will be inserted again, and many operations may be carried out in the whole life cycle. For example, when we ...

Posted by chyan on Mon, 21 Feb 2022 05:27:52 +0100

Implementation of spring boot custom annotation (used with AOP, reflection mechanism and interceptor)

1. Annotation type Java annotation is used to provide metadata for Java code. You can obtain the specified annotation object through reflection, and then obtain the metadata information in the annotation. Java annotations have four standard meta annotations: @ Target, @ Retention, @ Documented, @ Inherited. 1.1 @Target @Target describes ...

Posted by Harbinger on Mon, 21 Feb 2022 04:50:05 +0100

Alternative to log4j

Last December, as Log4J exposed high-risk vulnerabilities, it was not good news for java developers, especially for Ops. The former must repackage their applications with a fixed version of Log4J, while the latter must be redeployed. But for the program log, it is not just. Today, let's take a look at the log mechanism of the java systemIn shor ...

Posted by Perry Mason on Mon, 21 Feb 2022 02:45:20 +0100

swager/knife4j trivia record

1. Overview Hello, I'm Ouyang Fangchao. Today's event is still related to swagger (to be exact, knife4j). In the SpringBoot project integrating swagger, the dependencies introduced are as follows: <!-- https://mvnrepository.com/artifact/io.springfox/springfox-boot-starter --> <dependency> <groupId>io.springfox</group ...

Posted by eskick on Sun, 20 Feb 2022 15:15:09 +0100

AOP application and code implementation (detailed analysis)

catalogue 1. Introduction 1.1 main processes / functions of IOC 1.2 concept diagram of AOP 1.3 AOP flow chart 2. Basic preparations ------------------------------The configuration file implements AOP---------------------------- 3. Introduction to AOP configuration file mode 4. Expression of pointcut (the * sign is not recommended) -- ...

Posted by persia on Sun, 20 Feb 2022 11:15:14 +0100

SQL: mybatis+foreach+like/in robustness to achieve multi conditional input - multiple matching methods fuzzy search / search

Project scenario: The background of the project is the monitoring and management platform and the alarm configuration section. It is necessary to query and return multiple data information. Among them, it is necessary to optimize the query and return function of subscribers. The original one can only enter one subscriber name for query and opt ...

Posted by Codein on Sun, 20 Feb 2022 09:05:08 +0100

JWT asymmetric encryption public-private key encryption and decryption can set the expiration time [JwtHelper of Spring security framework] [Jwts of jsonwebtoken.JJWT]

introduce Recently, I want to develop a coder management platform. For the technical selection of login module, I chose JWT Jwt can ensure that the login information placed on the client is not tampered with. In order to be more secure, I use RSA asymmetric encryption. That is, the private key is used to generate Jwt, and the public key is use ...

Posted by climbjm on Sun, 20 Feb 2022 07:55:20 +0100

Bean management of Spring framework

1. What is Bean management bean management refers to the following two operations 1. Create object 2. Injection attribute 2. Two methods of bean management operation xml based implementation of configuration file 1 2. Implementation based on annotation 3. Implement Bean management and attribute injection based on xml configur ...

Posted by rptasiuk on Sun, 20 Feb 2022 06:11:46 +0100

WEB application development -- Explanation of Spring framework annotation + explanation and use of Spring JDBC

Annotation implementation Preparation for annotation development Jar package required for annotation. The annotation function is encapsulated in the AOP package and imported into Spring aop jar <!--open spring Annotation scanning --> <context:component-scan base-package="com.qn.spring"/> spring's annotations on classes incl ...

Posted by toddmarx on Sun, 20 Feb 2022 04:11:01 +0100

Spring core knowledge - Ioc brief introduction (concept and use)

The two core contents of spring are ioc and aop. This chapter introduces the concept, function and usage of ioc. ioc brief introduction: Concept: inversion of control, the creation of objects and the calling process between objects are handed over to Spring for management The purpose is to reduce coupling Underlying principles: xml parsing, f ...

Posted by bravo81 on Sat, 19 Feb 2022 22:47:47 +0100