使用produces = "text/html;charset=utf-8",出现406错误

使用produces = "text/html;charset=utf-8",出现406错误

 

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.


 

使用produces =

使用produces =

 

解决办法:不使用:produces = "text/html;charset=utf-8"

 

 

你可能感兴趣的:(代码异常,java,spring)