zoukankan      html  css  js  c++  java
  • ajax请求报406问题

    首先查看是否有架包:

    jackson-core-asl-1.9.10.jar;

    jackson-mapper-asl-1.9.9.jar;

    其次修改spring 配置文件为:

    <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"> 
        <property name="messageConverters"> 
            <list> 
                <!-- 设置返回字符串编码 --> 
                <bean class="org.springframework.http.converter.StringHttpMessageConverter"> 
                    <property name="supportedMediaTypes"> 
                        <list> 
                            <value>text/html;charset=UTF-8</value> 
                        </list> 
                    </property> 
                </bean> 
                <!-- json转换器 --> 
                <bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter"> 
                    <property name="supportedMediaTypes"> 
                        <list> 
                            <value>text/html;charset=UTF-8</value> 
                            <value>application/json;charset=UTF-8</value> 
                            <value>application/x-www-form-urlencoded;charset=UTF-8</value> 
                        </list> 
                    </property> 
                </bean> 
            </list> 
        </property> 
    </bean> 

  • 相关阅读:
    oracle用户和权限
    oracle中的索引
    oracle中的序列
    oracle中的视图
    oracle PL/SQL块
    oracle创建表案列
    半导体随机存储器
    IEEE754标准
    定点数的移位操作
    真值,原码,反码以及补码和移码总结
  • 原文地址:https://www.cnblogs.com/wuyandijun/p/8607840.html
Copyright © 2011-2022 走看看