Mybatis连接mysql数据库的时候,设置字符集编码

xiaoxiao2021-02-27  150

Mybatis连接mysql数据库的时候,设置字符集编码!!!

可以如下配置,Mybatis的配置文件中要这样写:

db.propertise

jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf-8 jdbc.username=root jdbc.password=123

Mybatis连接mysql数据库的时候,设置字符集编码!!!

可以如下配置,Mybatis的配置文件中要这样写:

转载请注明原文地址: https://www.6miu.com/read-14070.html

最新回复(0)