JSON 响应最基准的 HTTP 头

JSON 响应最标准的 HTTP 头header( Content-Type: application/json )header( Pragma: no-cache )he

JSON 响应最标准的 HTTP 头

header( 'Content-Type: application/json' );header( 'Pragma: no-cache' );header( 'Cache-Control: no-cache, no-store, max-age=0' );header( 'Expires: 1L' );



取自 spring 框架中的
MappingJacksonView