每次看到hello world,都有一种说不出的赶脚,想起了一个程序员,退休后写毛笔字,取笔研磨铺纸,大笔一挥,写下了“hello world”。

1.使用Maven生成项目结构

 2.转换成Eclipse项目

 3.添加Spring3.0 依赖

在pom.xml文件里添加Spring 3.0 依赖,然后依赖会从Maven中央仓库自动下载

 4.Spring bean

写个简单的bean

 5.Spring bean配置文件

创建一个配置文件,在里面声明所有可用的Spring beans

 6.最终的目录结构

Spring3-hello-world-example

 

7.运行

 8.输出

 9.Demo下载

Spring3-hello-world-example.zip