就是各種hello-world項目

從最簡單經典的hello-world
到使用設計模式解耦的版本
最終到使用 Spring 框架依賴注入的版本。
包含了一個 xml 配置的 spring 容器 `app-context.xml` 內容如下:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">
<!--xml方式定義兩粒bean-->
<bean id="provider" class="com.apress.prospring5.ch2.decoupled.HelloWorldMessageProvider"/>
<!--id和class,還有p命名空間-->
<bean id="renderer" class="com.apress.prospring5.ch2.decoupled.StandardOutMessageRenderer"
p:messageProvider-ref="provider"/>
</beans>
```
還有很簡單的單元測試:
```java
// 省略 import 語句
public class TestHelloWorldSpringAnnotated {
@Test
public void testHello() {
ApplicationContext ctx = new AnnotationConfigApplicationContext
(HelloWorldConfiguration.class);
MessageRenderer mr = ctx.getBean("renderer", MessageRenderer.class);
assertNotNull(mr);
}
}
```