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]

阅读更多
个人分类: Framework
上一篇iBatis 和 Hibernate 各有用途
下一篇60 seconds to Spring (2)
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭