第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

從jsp傳遞“段子”過去,與數(shù)據(jù)庫比較時,卻是亂碼,請問怎么解決?


錯誤信息如下:

### Error querying database.? Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE? cod.name='??μ?-?'? ? ? and cod.DESCRIPTION like '%' '??μ?-?' at line 12


正在回答

1 回答

在總的配置文件configuration。xml文件中找到鏈接數(shù)據(jù)庫的屬性,指定數(shù)據(jù)庫編碼解析為utf-8。

<property?name="url"?value="jdbc:mysql://127.0.0.1:3306/micro_message"/>


1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

倩與倩尋

<property name="url" value="jdbc:mysql://127.0.0.1:3306/micro_message?useUnicode=true&amp;characterEncoding=utf-8"/>
2018-08-21 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

從jsp傳遞“段子”過去,與數(shù)據(jù)庫比較時,卻是亂碼,請問怎么解決?

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號