After SpringMVC processes IE upload, it receives Json data and the download box appears

The version compatibility problem of IE browser, I believe, is a very headache for many front-end engineers. When I was working on a project some time ago, a download box appeared after uploading a file in IE. This problem has troubled my front-end friends for a long time, but under the guidance of the old driver, I found that SpringMVC has a good recipe for it. The configuration in springMVC is as follows:

    <mvc:annotation-driven>
        <mvc:message-converters register-defaults="true">
            <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
                <property name=" supportedMediaTypes">
                    <list>
                        <value>text/html;charset=UTF-8</value>
                    </list>
                </property>
            </bean>
        </mvc:message-converters>
    </mvc:annotation-driven>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326506373&siteId=291194637