Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.
/ Spring-Demo Public archive

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

Notifications You must be signed in to change notification settings

java-community/Spring-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages