1.使用archetype建立app框架
2. 在pom.xml中添加build plugin (exec-maven-plugin)
3. 执行application
4. 添加springframework的dependency
5. 建立一个java class
6. 在src/main下面增加resources.然后建立application-context.xml
7. 修改App.java,使用hello bean
参考:http://pookey.co.uk/wordpress/archives/50-getting-started-with-maven-and-spring