60 seconds to Spring (1)

原文地址:http://gabriel.jarchitect.org/spring/index.html

60 sec to Spring [TOC]

ruler.gif

Bean Tutorial 1 - Hello World Bean

This tutorial show you how to call a Hello World Bean using Spring IoC.

Step 1: Create a HelloBean.java in src

org/jarchitect/spring/tutorial1/HelloBean.java

Step 2: Specify the HelloBean class in the bean.xml

bean.xml

   

Step 3: Create a Main.java in src

org/jarchitect/spring/tutorial1/Main.java

                                                 }

Step 4: Use an ANT script to build and execute the Main class. Just run ant from the command prompt will do the trick.

Below are the output from ANT.

         



 

Done.

[TOC]

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页