2. Resolution Default Label of Spring Source Analysis 2

1. Resolving default labels parseDefaultElement(ele, delegate); void parseDefaultElement(Element ele, BeanDefinitionParserDelegate delegate) { //Parsing import Tags if (delegate.nodeNameEquals(ele, IMPORT_ELEMENT)) { importBeanDefinitionResource(ele); } //Parsing alias Tags else if (delegate.nodeNameEquals(ele, ALIAS_ELEME ...

Posted on Thu, 10 Oct 2019 12:40:09 -0700 by dflow

Android uses selector (selector) to achieve dynamic click effect

That is: The Prospect and Background of Android In Android, it is necessary to add dynamic click effects for the user's experience if click events are set for images. The results are as follows: The main code is as follows Realization: Step one: Set the background to selector_set in the control: (rememb ...

Posted on Thu, 10 Oct 2019 03:33:12 -0700 by jibosh

Various uses of @Import in Spring and ImportAware interface

@ Import annotation @ Import annotations provide functionality equivalent to <import/> elements in XML to implement one or more configuration classes imported. @ Import can be used either as a class or as a meta-annotation. @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Import { /** * ...

Posted on Thu, 10 Oct 2019 01:36:05 -0700 by benjrox

Use of Page Helper in MyBatis

Use of Page Helper in MyBatis A brief introduction to PageHelper Simple use of PageHelper Step 1: Import dependencies in pom.xml Step 2: Configure the interceptor plug-in in Spring's configuration file Step 3: Use Call PageHelper.startPage static method before you need to paginate MyBatis query meth ...

Posted on Wed, 09 Oct 2019 19:09:45 -0700 by dvt85

KVM Virtualization Foundation Management in Cent os 7

Bowen outline: 1. Installing kvm virtualization; Second, manually change the configuration file, clone web01 and generate a new virtual machine web02. 3. What are the similarities and differences between web01 and web02? Fourth, two methods of remote connection of virtual machine; 5. Use the default NAT network type to enable web02 to ping o ...

Posted on Wed, 09 Oct 2019 16:46:52 -0700 by snrecords

Spring-based declarative transactions using annotations (database operations, servlet implementations)

Implementing declarative transactions with annotations (database operations, servlet implementations) 1. Transactions: Let's see how transactions in databases are defined. That is to say, in a transaction, if many methods are invoked, either all of them are successfully executed or all of them fail to e ...

Posted on Wed, 09 Oct 2019 13:44:55 -0700 by nishmgopla

Resolve Mybatis Generator running mapper multiple times to generate duplicate content

Mybatis Generator plug-in is officially provided by Mybatis. There is an inherent Bug in this plug-in, that is, when Mapper. XML is generated for the first time, running again will cause Mapper. XML to generate duplicate content, which will affect the normal operation. We had to manually delete the extra stuff from mapper. xml. To solve this p ...

Posted on Wed, 09 Oct 2019 09:28:09 -0700 by rskandarpa

Android -- Switching between Fragment s

Implementing Super Simple 4 Bottom Bar Switching Fragment Design sketch:                                                         Implementation steps: Step 1: Dependent packages implementation 'com.android.support:design:28.0.0' Step 2: Create menu directory under res directory and navigation.x ...

Posted on Wed, 09 Oct 2019 04:29:47 -0700 by ayj

mybatis Framework Learning-CRUD Annotation

Preliminary preparation of mysql create database cong use cong; create table account( id int primary key auto_increment, name varchar(40), money float )character set utf8 collate utf8_general_ci; insert into account(name,money) values('aaa',1000); insert into account(name,money) values('bbb',1000); insert into account( ...

Posted on Wed, 09 Oct 2019 01:23:19 -0700 by sampledformat

Resolution of SpringBook Source - @Configuration Annotation

1. Introduction This article is about the last one. Spring refresh application context A supplementary description of Spring's parsing of the @Configuration annotation in step 5 of the previous article (instantiating and calling all registered bean Factory postprocessors) is described in detail. In the Spring Core Framework prior to Spring 3.0, ...

Posted on Wed, 09 Oct 2019 00:16:27 -0700 by sean04