HTTP - POST 406 Not Acceptable

pom.xml

            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>fastjsonartifactId>
                <version>1.2.7version>
            dependency>
servlet-context.xml 


    <annotation-driven>
        <message-converters register-defaults="true">
            
            <beans:bean id="fastJsonHttpMessageConverter"
                class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
                <beans:property name="supportedMediaTypes">
                    <beans:list>
                        <beans:value>application/json;charset=UTF-8beans:value>
                    beans:list>
                beans:property>

            beans:bean>
        message-converters>
    annotation-driven>

你可能感兴趣的:(spring4,Json)