Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

0gam

produces, consumes 본문

Spring Framework

produces, consumes

byeon0gam 2016. 7. 27. 18:20

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