0gam
produces, consumes 본문
headers : {
Accept : "application/json; charset=utf-8",
},
The Request -> contorller( produces = "application/json")
------------------------------------------------------------------------
contentType : 'application/json',
The Request -> controller ( consumes = "application/json" )
@Produces 는 Request header Accept, mine type 가 서로 맞을 때
@Consumes 는 Request header content-Type 가 서로 맞거나 !로 제외하였을 때
'Spring Framework' 카테고리의 다른 글
spring security session-registry (0) | 2017.02.08 |
---|---|
@Controller , @RestController (0) | 2016.09.20 |
@JsonIgnoreProperties(ignoreUnknown = true) (0) | 2016.07.07 |
Azure Web Service enable Cookie. (0) | 2016.06.24 |
<default-servlet-handler/> (0) | 2016.06.24 |