使用 springMVC实现REST风格

<context:annotation-config/>
在JavaConfig中,使用@AnnotationDrivenConfig批注启用了相同的功能
@Configuration
@AnnotationDrivenConfig
public class Config {
// may now use @Autowired to reference beans from other @Configuration classes, XML, etc
}