springboot auto scan added BeanDefinition source code analysis

1. During springboot startup, the bean definitions to be loaded will be collected and added to BeanFactory as BeanDefinition objects. Since there are only getBean and other methods to obtain bean objects in BeanFactory, adding BeanDefinition to BeanFactory is through void registerBeanDefinition(String beanName, BeanDefinition beanDefinitio ...

Posted by amit.patel on Tue, 15 Feb 2022 04:19:00 +0100

Why can't the start method be called repeatedly? And the run method can?

When you first learn threads, you always confuse the run method and the start method. Although they are two completely different methods, they are difficult to distinguish when you first use them. The reason is that the effect seems to be the same when you first use them. The following code is shown:public static void main(String[] args) { ...

Posted by Intelly XAD on Tue, 15 Feb 2022 04:16:20 +0100

Vue core of Vue family bucket

Vue core of Vue family bucket (I) 1 Introduction to Vue 1.1 what is Vue? Vue is a progressive JavaScript framework for building user interfaces. Author: you Yuxi Official website: https://cn.vuejs.org/index.html 1.2 characteristics of Vue 1. Adopt component mode to improve code reuse rate and make code better maintained. 2 declarati ...

Posted by Goat on Tue, 15 Feb 2022 04:02:46 +0100

Blue eat set red - burst CS Teamserver password

0x00: IntroductionCobalt strike (hereinafter referred to as CS)#As we all know, CS is a GUI framework "multiplayer movement" penetration test tool based on MSF. It integrates port forwarding, service scanning, automatic overflow, multi-mode port monitoring, exe, powershell Trojan horse generation, etcPhishing attacks include: site clo ...

Posted by phpbaby2009 on Tue, 15 Feb 2022 03:57:06 +0100

Source code analysis of Android arch components -- LiveData

In this article, let's take a look at LiveData in Android architecture components. Compared with ViewModel, LiveData has life cycle awareness, that is, it combines ViewModel with lifecycle. When the data of the application is updated, we generally only want to update the UI when the application is visible to the user; Further, if the applicatio ...

Posted by Galahad on Tue, 15 Feb 2022 03:46:09 +0100

Flutter | routing management

What is routing?For mobile developers, routing refers to page, activity in Android and Wie ViewController in ios To put it simply, it maps the page Jump relationship. Of course, it also includes all functions related to jump Routing management is to manage these pages, direct jump, communication mode, etcExamples1. Create a new route and name ...

Posted by abhi201090 on Tue, 15 Feb 2022 03:43:33 +0100

Add a string at the input and textarea cursors

1, Reference setSelectionRange() reference Selection MDN Range MDN 2, Problem description Business requirements: if the camera hair has illegal parking, it needs to send a text message to the relevant car owners Development task: relevant SMS templates need to be edited in advance, such as time, license plate number, owner's nam ...

Posted by Brendan Nolan on Tue, 15 Feb 2022 02:58:39 +0100

Use optimization | points that can be optimized in RecyclerView

RecyclerView core knowledge points1. What is RecyclerViewDisplay a large amount of data and flexible View for a limited screen, as shown in the following figure Compare ListView ListView: There is only a vertical list layoutThere is no API that supports animation The interface design is inconsistent with the system, such as setOnItemClickListe ...

Posted by Franko126 on Tue, 15 Feb 2022 02:56:30 +0100

Getting started guide | Jetpack Hilt dependency injection framework

Jetpck Dagger-HiltWhat is dependency injectionThere is a variable in a class, which is the dependency of the class. Then assign the value to this variable through external injection, which is called dependency injection.What is Hilt​ Hilt is Android's dependency injection and storage, which is actually based on Dagger. It can be said that hil ...

Posted by jubripley on Tue, 15 Feb 2022 02:54:33 +0100

Source code analysis | Resource loading resources

Understand the loading process of resources and load the resource file in the skin fileResource loading​ How are src images loaded in the imageView layout?mResources.loadDrawable(value, value.resourceId, density, mTheme)​ In fact, they are loaded through resources​ Since the Resource is loaded through the Resource class, if you want to ob ...

Posted by lmhart on Tue, 15 Feb 2022 02:53:27 +0100