MySQL Chinese garbled normal and mybatis query solution

The solution is in the spring-mvc.xml file, add

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

Several levels of several solutions garbled summary to be completed

Guess you like

Origin www.cnblogs.com/zxcoder/p/11898403.html