简体   繁体   中英

Spring MVC 406 error

I have written a Spring MVC application which displays a model in XML format.Its building well.But its giving me a 406 error which looks something like this

HTTP Status 406 -


type Status report

message

description The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers ().


Apache Tomcat/6.0.35

Please advice thanks in advance

您可能在请求中缺少Accept标头:

Accept: application/xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM