solve the problem of chinese garbled

1.chinese input mysql database grabled.
2.change jdbc connection string,add characterEncoding=UTF-8