原理上是一样的,只不过再添加了映射关系
自行百度springMVC.xml配置里面的
<mvc:annotation-driven/>
<context:annotation-config/>
<mvc:default-servlet-handler/>
等标签有什么用