调整项目结构

master
xuchengsheng 2023-10-09 09:57:19 +08:00
parent ba419461c1
commit 7cf4475b5c
186 changed files with 6018 additions and 6010 deletions

View File

@ -39,52 +39,31 @@
+ IOC容器
+ [关于IOC容器源码分析](spring-core-ioc/README.md)
+ 后置处理器与初始化
+ [关于BeanFactoryPostProcessor源码分析](spring-interface-beanFactoryPostProcessor/README.md)
+ [关于BeanDefinitionRegistryPostProcessor源码分析](spring-interface-beanDefinitionRegistryPostProcessor/README.md)
+ [关于BeanPostProcessor源码分析](spring-interface-beanPostProcessor/README.md)
+ [关于InstantiationAwareBeanPostProcessor源码分析](spring-interface-instantiationAwareBeanPostProcessor/README.md)
+ [关于DestructionAwareBeanPostProcessor源码分析](spring-interface-destructionAwareBeanPostProcessor/README.md)
+ [关于MergedBeanDefinitionPostProcessor源码分析](spring-interface-mergedBeanDefinitionPostProcessor/README.md)
+ [关于SmartInstantiationAwareBeanPostProcessor源码分析](spring-interface-smartInstantiationAwareBeanPostProcessor/README.md)
+ [关于InitializingBean源码分析](spring-interface-initializingBean/README.md)
+ [关于DisposableBean源码分析](spring-interface-disposableBean/README.md)
+ [关于SmartInitializingSingleton源码分析](spring-interface-smartInitializingSingleton/README.md)
+ [关于BeanFactoryPostProcessor源码分析](spring-interface/spring-interface-beanFactoryPostProcessor/README.md)
+ [关于BeanDefinitionRegistryPostProcessor源码分析](spring-interface/spring-interface-beanDefinitionRegistryPostProcessor/README.md)
+ [关于BeanPostProcessor源码分析](spring-interface/spring-interface-beanPostProcessor/README.md)
+ [关于InstantiationAwareBeanPostProcessor源码分析](spring-interface/spring-interface-instantiationAwareBeanPostProcessor/README.md)
+ [关于DestructionAwareBeanPostProcessor源码分析](spring-interface/spring-interface-destructionAwareBeanPostProcessor/README.md)
+ [关于MergedBeanDefinitionPostProcessor源码分析](spring-interface/spring-interface-mergedBeanDefinitionPostProcessor/README.md)
+ [关于SmartInstantiationAwareBeanPostProcessor源码分析](spring-interface/spring-interface-smartInstantiationAwareBeanPostProcessor/README.md)
+ [关于InitializingBean源码分析](spring-interface/spring-interface-initializingBean/README.md)
+ [关于DisposableBean源码分析](spring-interface/spring-interface-disposableBean/README.md)
+ [关于SmartInitializingSingleton源码分析](spring-interface/spring-interface-smartInitializingSingleton/README.md)
+ Aware接口
+ [关于BeanNameAware源码分析](spring-aware-beanNameAware/README.md)
+ [关于BeanClassLoaderAware源码分析](spring-aware-beanClassLoaderAware/README.md)
+ [关于BeanFactoryAware源码分析](spring-aware-beanFactoryAware/README.md)
+ [关于EnvironmentAware源码分析](spring-aware-environmentAware/README.md)
+ [关于EmbeddedValueResolverAware源码分析](spring-aware-embeddedValueResolverAware/README.md)
+ [关于ResourceLoaderAware源码分析](spring-aware-resourceLoaderAware/README.md)
+ [关于ApplicationEventPublisherAware源码分析](spring-aware-applicationEventPublisherAware/README.md)
+ [关于MessageSourceAware源码分析](spring-aware-messageSourceAware/README.md)
+ [关于ApplicationStartupAware源码分析](spring-aware-applicationStartupAware/README.md)
+ [关于ApplicationContextAware源码分析](spring-aware-applicationContextAware/README.md)
+ [关于ImportAware源码分析](spring-aware-importAware/README.md)
+ [关于BeanNameAware源码分析](spring-aware/spring-aware-beanNameAware/README.md)
+ [关于BeanClassLoaderAware源码分析](spring-aware/spring-aware-beanClassLoaderAware/README.md)
+ [关于BeanFactoryAware源码分析](spring-aware/spring-aware-beanFactoryAware/README.md)
+ [关于EnvironmentAware源码分析](spring-aware/spring-aware-environmentAware/README.md)
+ [关于EmbeddedValueResolverAware源码分析](spring-aware/spring-aware-embeddedValueResolverAware/README.md)
+ [关于ResourceLoaderAware源码分析](spring-aware/spring-aware-resourceLoaderAware/README.md)
+ [关于ApplicationEventPublisherAware源码分析](spring-aware/spring-aware-applicationEventPublisherAware/README.md)
+ [关于MessageSourceAware源码分析](spring-aware/spring-aware-messageSourceAware/README.md)
+ [关于ApplicationStartupAware源码分析](spring-aware/spring-aware-applicationStartupAware/README.md)
+ [关于ApplicationContextAware源码分析](spring-aware/spring-aware-applicationContextAware/README.md)
+ [关于ImportAware源码分析](spring-aware/spring-aware-importAware/README.md)
+ 核心注解
+ [关于@Configuration源码分析](spring-annotation-configuration/README.md)
+ [关于@ComponentScan源码分析](spring-annotation-componentScan/README.md)
+ [关于@Bean源码分析](spring-annotation-bean/README.md)
+ [关于@Import源码分析](spring-annotation-import/README.md)
+ [关于@PropertySource源码分析](spring-annotation-propertySource/README.md)
+ Bean工厂
+ 关于BeanFactory源码分析
+ 关于HierarchicalBeanFactory源码分析
+ 关于ListableBeanFactory源码分析
+ 关于AutowireCapableBeanFactory源码分析
+ 关于ConfigurableBeanFactory源码分析
+ 关于SingletonBeanRegistry源码分析
+ 关于BeanDefinition源码分析
+ 关于BeanDefinitionRegistry源码分析
+ 关于FactoryBean源码分析
+ 应用上下文
- 关于ApplicationContext源码分析
- 关于ConfigurableApplicationContext源码分析
- 关于WebApplicationContext源码分析
- 关于ApplicationEventPublisher源码分析
- 关于ApplicationListener源码分析
+ 环境变量
- 关于Environment源码分析
- 关于PropertyResolver源码分析
- 关于PropertySources源码分析
- 关于Profile源码分析
+ [关于@Configuration源码分析](spring-annotation/spring-annotation-configuration/README.md)
+ [关于@ComponentScan源码分析](spring-annotation/spring-annotation-componentScan/README.md)
+ [关于@Bean源码分析](spring-annotation/spring-annotation-bean/README.md)
+ [关于@Import源码分析](spring-annotation/spring-annotation-import/README.md)
+ [关于@PropertySource源码分析](spring-annotation/spring-annotation-propertySource/README.md)

36
pom.xml
View File

@ -18,40 +18,10 @@
</properties>
<modules>
<module>spring-annotation-configuration</module>
<module>spring-annotation-bean</module>
<module>spring-annotation-import</module>
<module>spring-annotation-propertySource</module>
<module>spring-annotation-componentScan</module>
<module>spring-interface-beanFactoryPostProcessor</module>
<module>spring-interface-beanPostProcessor</module>
<module>spring-interface-environment</module>
<module>spring-interface-applicationListener</module>
<module>spring-interface-importSelector</module>
<module>spring-interface-importBeanDefinitionRegistrar</module>
<module>spring-interface-resource</module>
<module>spring-interface-embeddedValueResolver</module>
<module>spring-interface-factoryBean</module>
<module>spring-interface-beanDefinitionRegistryPostProcessor</module>
<module>spring-interface-instantiationAwareBeanPostProcessor</module>
<module>spring-interface-destructionAwareBeanPostProcessor</module>
<module>spring-interface-mergedBeanDefinitionPostProcessor</module>
<module>spring-interface-smartInstantiationAwareBeanPostProcessor</module>
<module>spring-interface-initializingBean</module>
<module>spring-interface-disposableBean</module>
<module>spring-core-ioc</module>
<module>spring-interface-smartInitializingSingleton</module>
<module>spring-aware-beanNameAware</module>
<module>spring-aware-beanFactoryAware</module>
<module>spring-aware-beanClassLoaderAware</module>
<module>spring-aware-applicationContextAware</module>
<module>spring-aware-applicationEventPublisherAware</module>
<module>spring-aware-environmentAware</module>
<module>spring-aware-resourceLoaderAware</module>
<module>spring-aware-embeddedValueResolverAware</module>
<module>spring-aware-messageSourceAware</module>
<module>spring-aware-applicationStartupAware</module>
<module>spring-aware-importAware</module>
<module>spring-annotation</module>
<module>spring-aware</module>
<module>spring-interface</module>
</modules>
<dependencies>

View File

@ -7,13 +7,17 @@
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-annotation</artifactId>
<packaging>pom</packaging>
<artifactId>spring-aware-beanClassLoaderAware</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<modules>
<module>spring-annotation-configuration</module>
<module>spring-annotation-bean</module>
<module>spring-annotation-import</module>
<module>spring-annotation-propertySource</module>
<module>spring-annotation-componentScan</module>
</modules>
</project>

View File

@ -25,7 +25,7 @@
### 一、前置条件
+ [关于BeanDefinitionRegistryPostProcessor源码分析](../spring-interface-beanDefinitionRegistryPostProcessor/README.md)
+ [关于BeanDefinitionRegistryPostProcessor源码分析](../../spring-interface/spring-interface-beanDefinitionRegistryPostProcessor/README.md)
### 二、注解描述

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-annotation</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -2,7 +2,6 @@ package com.xcs.spring.config;
import com.xcs.spring.bean.MyBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-annotation</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-annotation</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-annotation</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-annotation</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-beanFactoryAware</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-beanNameAware</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>

View File

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-resourceLoaderAware</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>

29
spring-aware/pom.xml Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware</artifactId>
<packaging>pom</packaging>
<modules>
<module>spring-aware-beanNameAware</module>
<module>spring-aware-beanFactoryAware</module>
<module>spring-aware-beanClassLoaderAware</module>
<module>spring-aware-applicationContextAware</module>
<module>spring-aware-applicationEventPublisherAware</module>
<module>spring-aware-environmentAware</module>
<module>spring-aware-resourceLoaderAware</module>
<module>spring-aware-embeddedValueResolverAware</module>
<module>spring-aware-messageSourceAware</module>
<module>spring-aware-applicationStartupAware</module>
<module>spring-aware-importAware</module>
</modules>
</project>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-beanClassLoaderAware</artifactId>
</project>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-beanFactoryAware</artifactId>
</project>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-beanNameAware</artifactId>
</project>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-reading</artifactId>
<artifactId>spring-aware</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

Some files were not shown because too many files have changed in this diff Show More