在dataSource.properties配置文件中设置useUnicode=true&characterEncoding=utf-8编码即可。
jdbc.url=jdbc:mysql://localhost/db?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=root
在dataSource.properties配置文件中设置useUnicode=true&characterEncoding=utf-8编码即可。
jdbc.url=jdbc:mysql://localhost/db?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=root