Hibernate uses mysql UTF-8 encoding

xiaoxiao2021-03-06  106

I plan to use Hibernate to do data mapping, the database uses mysql, starting with a version 5.0, but I don't know why it's coding does not be UTF-8, saying that LI is the code that cannot be converted to UTF-8 later There is no problem with a 4.0.21. I can't think of it? ? It seems that the problem of coding should be available. The next step is combined with Struts. There is also an encoded filter for Struts. Later, it was found that 5.0 It would need to be in the configuration file to change the code.

转载请注明原文地址:https://www.9cbs.com/read-100663.html

New Post(0)