<mvc:annotation-driven />的可选配置
<mvc:annotation-driven message-codes-resolver ="bean ref" validator="" conversion-service=""> <mvc:return-value-handlers>
<bean></bean>
</mvc:return-value-handlers> <mvc:argument-resolvers>
</mvc:argument-resolvers> <mvc:message-converters>
</mvc:message-converters>[/color]
</mvc:annotation-driven>
<mvc:annotation-driven/>相当于注册了DefaultAnnotationHandlerMapping和AnnotationMethodHandlerAdapter两个bean,配置一些messageconverter。即解决了@Controller注解的使用前提配置。