Used to write their own database connection pool, has not been garbled problem.
Because I heard that the tomcat7 of the connection pool efficiency is good, want to use, the result has been garbled.
Garbled production path is just a few, MySQL build library and build the table when the specified code, Eclipse Engineering Code Unified, Web page encoding, as well as connecting the database when specifying the code.
On top of that, you can find out why. Because this time just replaced the connection pool, but there is garbled, I suspect to the connection pool problem.
Previously connected database configuration, you can write this
conn.url=jdbc:mysql://localhost:3306/xxx?useunicode=true& Characterencoding=utf-8
However, the TOMCAT7 JDBC pool is not, in the following format:
Conn.url=jdbc:mysql://localhost:3306/xxx?useunicode=true&characterencoding=utf-8
is to put that amp;
Say the official website of the document really pit dad, perfunctory, incredibly even this did not explain, or in the community found the answer.