Implementation principle of Mybatis spring

I have always had a question about using mybatis spring Mybatis source (I) overview As I mentioned in, the declaration cycle of SqlSession and Mapper objects is method level, that is to say, the SqlSession and Mapper objects of each request are different, which is a non singleton Bean. But after integrating with Spring, why can we directly inje ...

Posted on Wed, 27 Nov 2019 00:50:14 -0500 by xeross

Spring Boot source code analysis -- essence of Spring Boot: integrating AOP

This article mainly integrates an important function AOP of spring Let's review how AOP was used in Spring. You can take a look at my article In depth analysis of spring 5 source code -- use of AOP and AOP custom label Using AOP in Spring Introducing Aspect <dependency> <groupId>org.aspectj</groupId> <artifactId&gt ...

Posted on Tue, 26 Nov 2019 23:46:52 -0500 by sureshmaharana

Feign load balancing: Java B2B2C spring cloud e-mall system

1 Overview 1.1 INTRODUCTION Feign is a declarative web service client. When using methods, define an interface and annotate it. Feign supports pluggable encoders and decoders. Spring Cloud encapsulates feign to support spring MVC and HttpMessageConverters. Feign can be combined with Eureka and Ribbon to support load balancing. 1.2 origin Most o ...

Posted on Tue, 26 Nov 2019 15:16:12 -0500 by Carolyn

Basic usage of RecyclerView

Basic usage The basic usage of RecyclerView is similar to that of ListView. You need to import it in the dependencies closure before using it implementation 'com.android.support:recyclerview-v7:28.0.0' Step 1: establish a simple layout interface for RecyclerView <ImageView android:id="@+id/fruit_image" a ...

Posted on Tue, 26 Nov 2019 13:31:35 -0500 by pob123

springboot tutorial 20 of java web -- XML version of mybatis

The xml version keeps the old tradition of mapping file. The interface layer only needs to define empty methods. The system will automatically find the corresponding Sql in the mapping file according to the method name Catalog: The mysql file is the same as the annotation version. Configure xml below 1, configuration ap ...

Posted on Tue, 26 Nov 2019 12:16:01 -0500 by kharbat

Logback - MDC and SiftingAppender

1. role Logback delegates the task of writing log events to the appender component. SiftingAppender, as its name implies, filters log events. Specifically: For the log events that Logback delegates to it, SiftingAppender will make some distinctions on the log events, and then different events SiftingAppender will delegate different Appende ...

Posted on Tue, 26 Nov 2019 11:22:56 -0500 by premiso

Learn how to add related components in SpringBoot

After checking the relevant components, A fundamental change has taken place in the pom.xml file 1. This is the pom file of the simplest project pom.xml This is the pom file of projects with web, mongodb, mybatis, redis, etc. checked pom.xml Comparing the two pom files, we can see that the main content of the project is added in ...

Posted on Tue, 26 Nov 2019 11:12:31 -0500 by manwhoeatsrats

Export Swagger2 documents to HTML or markdown formats for offline reading

There are many articles on the Web about "Building API Documents Using swagger2", which is an online document that requires HTTP access.However, in our daily use of swagger interface documents, sometimes we need offline access to interface documents, such as exporting documents to html, markdown format.Or we don't want the applicatio ...

Posted on Mon, 25 Nov 2019 19:49:35 -0500 by Vigilant Psyche

Configure lzo compression format for cdh

hadoop does not support lzo compression format by default; lzo compression tool, which supports the segmentation of data larger than the block size, can improve the Job processing efficiency in production; Components required for lzo:     lzo     lzop Hadoop GPL packing: GPL packing is mainly used to create an index for the compressed lzo fi ...

Posted on Mon, 25 Nov 2019 14:44:45 -0500 by rajb

dubbo three file upload of dubbo

                In (dubbo II) article , we have deployed customer and provider separately, this time we mainly record the transfer of files between customer and provider If the file is saved directly in customer and does not need to be passed to provider, it has nothing to do with dubbo If you need to transfer, if you use dubbo ...

Posted on Mon, 25 Nov 2019 13:21:00 -0500 by neller