Is there any special configuration to call the mime type "application / json" that Tomcat 6.0 (Spring MVC 3.0) should accept?

Is there any special configuration? or should it work out of the box?

eg. should something like this be added to make it work?

 <mime-mapping>
    <extension>json</extension>
    <mime-type>application/json</mime-type>
</mime-mapping> 
+5
source share
2 answers

It seems that there is no special configuration, it takes any applications / json requests out of the box, I suspected the wrong problem.

Look at my other question, it has an original problem and an amazing stupid solution: JQuery, Spring MVC @RequestBody and JSON - making it work together

0

Tomcat .json mime, , mime conf/web.xml.

JSON, : mime setContentType.

+1

All Articles