Skip to content

Commit

Permalink
新增模块
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchengsheng committed Oct 23, 2023
1 parent c9562df commit de54f95
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
*探索 Spring 的核心部分,并理解其对象管理的高级策略。*

- [**深入理解IOC容器**](spring-core-ioc/README.md) - 探寻 Spring 如何实现控制反转,提供强大的依赖管理。
- [**getBean方法**](spring-core/spring-core-getBean/README.md) - 创建一个新的 bean 实例。
- [**resolveDependency方法**](spring-core/spring-core-resolveDependency/README.md) - 用于解析特定依赖的 bean。这通常在自动注入时使用。
- [**destroyBean方法**](spring-core/spring-core-destroyBean/README.md) - 销毁所有单例 bean。这通常在容器关闭时调用。

> ### 💡 后置处理器与初始化
Expand Down
Binary file modified banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
</properties>

<modules>
<module>spring-core-ioc</module>
<module>spring-annotation</module>
<module>spring-aware</module>
<module>spring-interface</module>
<module>spring-jsr</module>
<module>spring-core</module>
<module>spring-aop</module>
<module>spring-mvc</module>
</modules>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion spring-core-ioc/pom.xml → spring-aop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spring-core-ioc</artifactId>
<artifactId>spring-aop</artifactId>

</project>
21 changes: 21 additions & 0 deletions spring-core/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?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-core</artifactId>
<packaging>pom</packaging>

<modules>
<module>spring-core-resolveDependency</module>
<module>spring-core-getBean</module>
<module>spring-core-destroyBean</module>
</modules>

</project>
Empty file.
14 changes: 14 additions & 0 deletions spring-core/spring-core-destroyBean/pom.xml
Original file line number Diff line number Diff line change
@@ -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-core</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spring-core-destroyBean</artifactId>

</project>
File renamed without changes.
14 changes: 14 additions & 0 deletions spring-core/spring-core-getBean/pom.xml
Original file line number Diff line number Diff line change
@@ -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-core</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spring-core-getBean</artifactId>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author xcs
* @date 2023年09月16日 16时09分
**/
public class IOCApplication {
public class GetBeanApplication {

public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfiguration.class);
Expand Down
Empty file.
14 changes: 14 additions & 0 deletions spring-core/spring-core-resolveDependency/pom.xml
Original file line number Diff line number Diff line change
@@ -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-core</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spring-core-resolveDependency</artifactId>

</project>
14 changes: 14 additions & 0 deletions spring-mvc/pom.xml
Original file line number Diff line number Diff line change
@@ -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-reading</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>spring-mvc</artifactId>

</project>

0 comments on commit de54f95

Please sign in to comment.