Mybatis cache configuration

Preface Using cache can improve the speed of data acquisition and avoid frequent database interaction, especially in the case of more queries and higher cache hit rate, the role of using cache is more obvious. Generally speaking, when Mybatis cache is mentioned, it refers to the second level cache, which is enabled by default. First level ca ...

Posted on Sat, 14 Mar 2020 04:57:06 -0700 by z1haze

maven download and configuration (eclipse)

Catalog Maven Downloads Maven configuration 1. Configuration of environment variables 2. Modify the configuration file Configuring Maven under Eclipse Spring framework ​  Maven Downloads 1. Download it on the official website at http://maven.apache.org/download.cgi 2. 3. Download and extr ...

Posted on Sat, 14 Mar 2020 03:27:25 -0700 by rfrid

Spring boot related matching files

1. Profile Spring boot uses a global configuration file with a fixed name; •application.properties •application.yml The function of configuration file: modify the default value of spring boot automatic configuration; spring boot automatically configures for us at the bottom; YAML(YAML Ain't Mark ...

Posted on Fri, 13 Mar 2020 03:45:41 -0700 by Mr Tech

Spring IOC container source code analysis - get singleton bean

public Object getBean(String name) throws BeansException { // getBean is an empty shell method. All logic is encapsulated in the doGetBean method return doGetBean(name, null, null, false); } protected <T> T doGetBean( final String name, final Class<T> requiredType, final Obj ...

Posted on Thu, 12 Mar 2020 21:36:52 -0700 by loureiro

A simple example of C + + calling tinyxl2 to traverse all xml nodes and use map output

A simple example of C + + calling tinyxl2 to traverse all xml nodes and use map output This example only needs 3 files in total To get all the codes, please go to github download address: Bily Bily has a detailed video explanation address: main.cpp ElectronicProduct.xml Other This example only ...

Posted on Thu, 12 Mar 2020 20:54:21 -0700 by jabapyth

Spring - IoC core (based on XML), DI core (based on XML)

Catalog 1, IoC container 1. The difference between BeanFactory and ApplicationContext 2. Four ways to instantiate a Bean 2.1. Instantiate with constructor (no parameter constructor) 2.2. Static factory method instantiation (understanding) 2.3 instance factory method instantiation (understanding) ...

Posted on Wed, 11 Mar 2020 23:31:40 -0700 by rashmi_k28

Using node to generate swagger interface document

In the development process, when we request an interface, we usually have an interface document in the background, which is convenient for us to consult. Today, we use node to generate an interface document of our own, and know how the interface document comes from. This is not about how to install nod ...

Posted on Tue, 10 Mar 2020 23:01:13 -0700 by the_last_tamurai

[java framework] Spring -- Spring Dependent Injection Configuration

1. Spring Dependent Injection Method Today, I'm going to focus on the various injection-dependent ways in the Spring framework and the associated set of configurations, which are the core fascination of Spring's lightweight DI, IOC Bean container framework. Spring Dependent Injection This article highlights the constructor parameter injection, ...

Posted on Tue, 10 Mar 2020 09:42:59 -0700 by SerpentSword

Dubbo's principle of service consumption

Preface Last article Dubbo's service exposure This paper analyzes how Dubbo services are exposed, and then analyzes the consumption process of Dubbo services. Mainly from the following aspects: the exposure of the registration center; service consumption notice through the registration center; direct service consumption. When the service consu ...

Posted on Mon, 09 Mar 2020 23:44:03 -0700 by veronicabend

Java single application - Architecture Mode - 04. Practice (three tier architecture + MVC)

Original address: http://www.work100.net/training/monolithic-architecture-test.htmlMore tutorials: Beam cloud - free course Practice exercise Serial number Chapter in text video 1 Build project structure 2 code implementation 3 Website implementation 4 test run 5 summary Please refer to the navigation above for reading 1. Build ...

Posted on Mon, 09 Mar 2020 21:13:13 -0700 by adrian_quah