How to set useUnicode=true and characterEncoding=utf8 properties on Spring-managed MySQL JDBC connection

后端 未结 5 710
醉话见心
醉话见心 2021-02-05 06:27

I\'m currently building a Spring MVC webapp and the database is the vital backend part. For whatever reason, however, Spring is refusing to process the data as UTF-8. Since the

5条回答
  •  星月不相逢
    2021-02-05 07:03

    Did you try:

    
        
            yes
            utf8
        
    
    

    And also: Did you try a simple Java client (console application) that connects to the DB? Does the UTF-8 work in this case?

提交回复
热议问题