◐ Shell
clean mode source ↗

GitHub - java-community/Spring-Demo: 一个Spring框架demo,实现IoC的简单方法,体现scope属性值以及初始化,销毁对象;四个功能体现

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Spring-Demo(技术栈:Spring)

一个Spring框架demo,实现IoC的简单方法,体现scope属性值以及初始化,销毁对象;四个功能体现

1.test1的testMain类(实现IoC的简单方法:对象交给容器控制,而不是传统在对象内部直接控制) 效果图: github

2.test2的testMain类(scope属性值:singleton)效果图: github

3.test3的testMain类(scope属性值:prototype)效果图: github

4.test4的testMain类(Spring初始化,销毁对象)效果图: github