在使用ssm框架中间出现的数据库操作乱码问题
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/boot_crm?useUnicode=true&characterEncoding=UTF
原来是没有在数据库连接的时候添加?useUnicode=true&characterEncoding=UTF-8
在连接数据库的时候需要设定数据库编码为utf-8
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/boot_crm?useUnicode=true&characterEncoding=UTF
原来是没有在数据库连接的时候添加?useUnicode=true&characterEncoding=UTF-8
在连接数据库的时候需要设定数据库编码为utf-8