Spring4基础知识之一-----HelloWorld

一、spring版本

使用spring4.0.6,下载地址:http://repo.springsource.org/libs-release-local/org/springframework/spring/

二、新建工程

导入相关jar包,在spring包libs中,选择相关的jar包。

三、实现HelloWorld

3.1新建HelloWorld.java

3.2 配置文件 applicationContext.xml

3.2 创建Test类

执行输出结果:

猜你喜欢

转载自blog.csdn.net/qq_39527230/article/details/83117710
今日推荐