qq_夜星辰_0
2015-06-26 17:28
2015-06-26 17:28:17,350 [http-bio-8080-exec-7] DEBUG [Command.queryCommandList] - ==> Preparing: select a.ID C_ID,a.NAME,a.DESCRIPTION,b.ID,b.CONTENT,b.COMMAND_ID from COMMAND a left join COMMAND_CONTENT b on a.ID=b.COMMAND_ID WHERE a.NAME=?
2015-06-26 17:28:17,351 [http-bio-8080-exec-7] DEBUG [Command.queryCommandList] - ==> Parameters: 段子(String)
2015-06-26 17:28:17,352 [http-bio-8080-exec-7] DEBUG [Command.queryCommandList] - <== Total: 0
2015-06-26 17:22:24,455 [http-bio-8080-exec-5] DEBUG [Command.queryCommandList] - ==> Preparing: select a.ID C_ID,a.NAME,a.DESCRIPTION,b.ID,b.CONTENT,b.COMMAND_ID from COMMAND a left join COMMAND_CONTENT b on a.ID=b.COMMAND_ID
2015-06-26 17:22:24,486 [http-bio-8080-exec-5] DEBUG [Command.queryCommandList] - ==> Parameters:
2015-06-26 17:22:24,632 [http-bio-8080-exec-5] DEBUG [Command.queryCommandList] - <== Total: 6
说明数据查询没问题,你获取数据有问题,打断点追踪数据
看看mysql的编码方式 以及连接时 url后面指定
jdbc:mysql://localhost:3306/mirco_message?characterEncoding=utf8
原因可能是传入的中文字符解析成了一个?
通过自动回复机器人学Mybatis---基础版
107412 学习 · 786 问题
相似问题