Talk about dependency injection annotation @ Resource and @ Autowired

1. Preface @Both Resource and @ Autowired annotations can be used for declarative dependency injection in Spring Framework applications. And the interview often involves these two notes of knowledge. Let's summarize them today. 2. @Resource Full name javax.annotation.Resource , which is an annotation of the JSR-250 specification, including Jak ...

Posted by stratguitar on Sun, 07 Jun 2020 19:06:28 -0700

Redis Learning Integration

Redis Redis 1. CAP principle of relational database CAP Three in two of CAP BASE 2. Introduction to distributed and cluster Distributed colony 3. Introduction to redis What is it? characteristic application basic operation add to Value 4. Redis data type String List Set Hash Zset 5. Three ...

Posted by saku on Sun, 07 Jun 2020 03:28:48 -0700

vlayout principle of Android Tangram dynamic page

This series of articles mainly introduces the open source Tangram Experience and principle of using framework, because Tangram bottom layer is based on vlayout The series will be introduced according to the following outline: Demand background Tangram and vlayout introduction Use of Tangram vlayout principle Tangram principle Tangram secondary ...

Posted by X74SY on Sun, 07 Jun 2020 02:41:16 -0700

Analysis of SpringBoot startup process

Analysis of SpringBoot startup process It has been two years since we used spring boot for development, but we haven't thoroughly understood its relevant source code. In the near future, we can carefully read and analyze the relevant source code. In this paper, we start our analysis and study from the s ...

Posted by eatc7402 on Sat, 06 Jun 2020 21:20:19 -0700

2, AOP of spring 5 framework

AOP AOP (concept) (1) Face to face programming (aspect), AOP can isolate all parts of business logic, so that The coupling degree between each part of business logic is reduced, the reusability of program is improved, and the efficiency of development is improved. (2) Popular Description: add new fun ...

Posted by michaelk46 on Sat, 06 Jun 2020 00:12:00 -0700

Initialization of Spring container

After reading this article, you will get Learn about the Spring container initialization process The best practice of ThreadLocal in Spring Answer the Spring container initialization process in the interview introduction Let's start with a simple and common code <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING ...

Posted by henryblake1979 on Fri, 05 Jun 2020 22:41:05 -0700

Deep learning of spring boot source code -- spring factorysloader

preface   if you want to learn the source code in depth, you must first learn to understand its notes, after all, it is first-hand knowledge. We all know what an excellent framework spring boot is. It has brought great convenience to Java developers, and there is no need to integrate SSM, so we w ...

Posted by TheVoice on Thu, 04 Jun 2020 23:31:33 -0700

String can also do performance optimization, I can only say Niubi!

By Lyl Daisyhttps://blog.csdn.net/kkkkk0826/article/details/104171355 String string is one of the most commonly used types in the system, which occupies a large amount of memory in the system. Therefore, efficient use of string can improve the performance of the system. In the process of work and learning, I summarized the following three sch ...

Posted by Bob_PHP_Builder on Tue, 02 Jun 2020 18:00:44 -0700

What exactly did spring boot do?

Preface For server-side development, most new projects are based on spring boot. Projects using spring boot typically have this line of code SpringApplication.run(TestApplication.class, args); This is where the Spring boot framework loads.It's a whim to see what it's doing. new SpringApplication(primarySources)) The run method first creates a ...

Posted by evmace on Tue, 02 Jun 2020 01:51:44 -0700

Four ways to read the properties file in SpringBoot

preface Configuration files are often used in project development. The existence of configuration files solves a lot of repeated work. Today, I'll share four ways to get configuration files in spring boot. Note: the first three test configuration files are spring boot default application.properties file ############ ...

Posted by shaneiadt on Sun, 31 May 2020 07:32:08 -0700