久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      ibatis mysql 亂碼怎么解決

      ibatis mysql亂碼的解決辦法:1、檢查mysql的字符集,并設(shè)置為utf8;2、將配置修改為“<property name="url"><value><![CDATA[jdbc:mysql://localhost:3306/yourDbNameuseUnicode=TRUE&characterEncoding=utf8]]></value>”即可。

      ibatis mysql 亂碼怎么解決

      本教程操作環(huán)境:Windows10系統(tǒng)、MySQL5.7版本、Dell G3電腦。

      ibatis mysql 亂碼怎么解決?

      ibatis+mysql的中文亂碼問題

      今天寫一測試樣例,發(fā)現(xiàn)使用ibatis插入到數(shù)據(jù)庫顯示為亂碼,查閱資料解決,總結(jié)如下:

      (1)檢查mysql的字符集,我用的是Navicat for MySQL,查看方法如下:

      選擇數(shù)據(jù)庫-》右鍵-》查看數(shù)據(jù)庫屬性,設(shè)置為utf8;

      (2)如果數(shù)據(jù)庫字符集不是utf8,建的表也應(yīng)該不是utf8,如果不是生產(chǎn)環(huán)境,建議表刪除后重建;

      (3)連接串配置修改為以下內(nèi)容,如果是xml配置文件加入cdata標(biāo)簽,并注意不要有空格。

          <property name="url">      <value><![CDATA[jdbc:mysql://localhost:3306/yourDbName?useUnicode=TRUE&characterEncoding=utf8]]></value>    </property>
      登錄后復(fù)制

      推薦學(xué)習(xí):《MySQL視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號