1, java存储中文到数据库? (设置数据库的编码characterEncoding=UTF-8)
jdbc.url=jdbc:mysql://192.168.10.102:3306/ssm?characterEncoding=UTF-8
2, 页面响应数据中文乱码:
@RequestMapping(value = "/save",produces = "text/html;charset=UTF-8")
2024-03-27 20:34:46
1, java存储中文到数据库? (设置数据库的编码characterEncoding=UTF-8)
jdbc.url=jdbc:mysql://192.168.10.102:3306/ssm?characterEncoding=UTF-8
2, 页面响应数据中文乱码:
@RequestMapping(value = "/save",produces = "text/html;charset=UTF-8")