搞了好长时间,一直穿不进去中文,其实在URL上设置一下编码就ok啦。
如: "jdbc:mysql://localhost:3306/example?useUnicode=true&characterEncoding=utf-8"加上
useUnicode=true&characterEncoding=utf-8这个就有用啦。
搞了好长时间,一直穿不进去中文,其实在URL上设置一下编码就ok啦。
如: "jdbc:mysql://localhost:3306/example?useUnicode=true&characterEncoding=utf-8"加上
useUnicode=true&characterEncoding=utf-8这个就有用啦。