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

One to many in MyBatis

One to many understanding: A teacher has more than one student If for teachers, it is a one to many phenomenon, that is, from a teacher to have a group of students (set)! Database for reference Many to one. Example: The following example is built in the spring boot environment. There are two ...

Posted on Sat, 07 Mar 2020 22:00:26 -0800 by unidox

Shiro -- Integrated SSM framework

1. Configure web.xml <!-- Shiro Frame entrance --> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> <init-param> <param-name>targetFilterLifecycle</param-name> ...

Posted on Sat, 07 Mar 2020 07:06:24 -0800 by gabe

Software design pattern learning abstract factory pattern

Abstract factory pattern Abstract factory pattern is one of the common construction design patterns, which is more abstract than factory method pattern. In the factory method mode, the specific factory only produces one specific product, but in the abstract factory mode, the specific factory can prod ...

Posted on Sat, 07 Mar 2020 05:33:25 -0800 by duncanwilkie