HttpMessageConverter
。
<!--- StringHttpMessageConverter bean --> < bean id = "stringHttpMessageConverter" class = "org.springframework.http.converter.StringHttpMessageConverter"/> <!-- 啓動Spring MVC的註解功能,完成請求和註解POJO的映射 --> < bean class ="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" > < property name= "messageConverters" > < list> < ref bean= "mappingJacksonHttpMessageConverter" /> <!-- 新增的StringMessageConverter bean--> < ref bean= "stringHttpMessageConverter" /> < ref bean= "jsonHttpMessageConverter" /> < ref bean= "formHttpMessageConverter" /> </ list> </ property> </ bean>
4、HttpMessageConverter請求信息轉換器簡介:html