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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

log4j顯示總共有8條數(shù)據(jù),回復(fù)每次卻只顯示第一條?

2017-03-15 17:24:44,240 [http-bio-8080-exec-8]DEBUG[Command.queryCommandList]- ==> ?Preparing: select a.id,a.name,a.description,b.content from command a left join command_content b on a.id=b.command_id WHERE a.name=??

2017-03-15 17:24:44,240 [http-bio-8080-exec-8]DEBUG[Command.queryCommandList]- ==> Parameters: 查看(String)

2017-03-15 17:24:44,245 [http-bio-8080-exec-8]DEBUG[Command.queryCommandList]- <== ? ? ?Total: 8


http://img1.sycdn.imooc.com//58c909d10001b57a12940620.jpg

http://img1.sycdn.imooc.com//58c909d30001b2d209910598.jpg

http://img1.sycdn.imooc.com//58c909d400012ca812940620.jpg

http://img1.sycdn.imooc.com//58c909d50001d1c012940598.jpg


正在回答

3 回答

看下你的顯示代碼

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

等一束花開3990875

你返回的是集合,你顯示是一次遍歷集合逐個(gè)顯示的么?
2017-03-15 回復(fù) 有任何疑惑可以回復(fù)我~
#2

快樂不假 提問者 回復(fù) 等一束花開3990875

我的問題是,那個(gè)獲得那些content,本來應(yīng)該是很多條的,但現(xiàn)在只顯示第一條size()等于1
2017-03-15 回復(fù) 有任何疑惑可以回復(fù)我~
#3

快樂不假 提問者 回復(fù) 等一束花開3990875

你說的顯示是QueryService代碼嗎?
2017-03-15 回復(fù) 有任何疑惑可以回復(fù)我~
#4

快樂不假 提問者

大神,我解決了,select a.id aid ,a,name,a.description,b.content from ....(之前) 更改:select a.id aid ,a,name,a.description,b.content,b.id,b.command_id from ....(之后) 就好了,可是為什么只寫b.command不能呢??????
2017-03-15 回復(fù) 有任何疑惑可以回復(fù)我~
#5

快樂不假 提問者

非常感謝!
2017-03-15 回復(fù) 有任何疑惑可以回復(fù)我~
查看2條回復(fù)

同問。。請(qǐng)問你是怎么解決的

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

快樂不假 提問者

點(diǎn)開上面的回復(fù),我之前已經(jīng)寫上答案了
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_糖苦_03800705 回復(fù) 快樂不假 提問者

我的也解決了。。剛才加了個(gè)log4j價(jià)包就好了?!,F(xiàn)在更不明白了。。這跟log4j有什么關(guān)系。。(我一開始沒打算用log4j)
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#3

快樂不假 提問者 回復(fù) qq_糖苦_03800705

這,我真不知道
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#4

qq_糖苦_03800705 回復(fù) 快樂不假 提問者

你是妹子嗎。。頭像那么可愛。。哈哈
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#5

快樂不假 提問者 回復(fù) qq_糖苦_03800705

沒救了
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#6

qq_糖苦_03800705 回復(fù) 快樂不假 提問者

我是覺得學(xué)這得妹子少。。碰到了要好好聊聊
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
#7

快樂不假 提問者 回復(fù) qq_糖苦_03800705

爺是漢子,直的
2017-09-04 回復(fù) 有任何疑惑可以回復(fù)我~
查看4條回復(fù)


public class QueryService {

/**

* 查詢信息

* @param command

* @param description

* @return

*/

public List selectInfo(String command,String description){

InfoSelect is=new InfoSelect();

return is.selectInfo(command, description);

}

/**

* 通過指令查詢自動(dòng)回復(fù)內(nèi)容

* @param command

* @return

*/

public String queryByCommond(String name)

{

CommandSelect cs=new CommandSelect();

List<command>commandList;

if(Iconst.HELP_COMMAND.equals(name))

{

commandList=cs.selectByCommand(null, null);

StringBuilder sb=new StringBuilder();

for(int i=0;i<commandList.size();i++)

{

if(i!=0)//第一條不拼接回車

{

sb.append("<br/>");

}

sb.append("回復(fù)【"+commandList.get(i).getName()+"】可以查看"+commandList.get(i).getDescription());

}

return sb.toString();

}

commandList=cs.selectByCommand(name,null);

if(commandList.size()>0){

List<command_content> command_contentList= commandList.get(0).getContentList();

return command_contentList.get(new Random().nextInt(command_contentList.size())).getContent();

}

return Iconst.NO_MATCHING_CONTENT;

}

public static void main(String []args)

{

new QueryService().queryByCommond("查看");

}

}

http://img1.sycdn.imooc.com//58c926970001037408730546.jpg

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

舉報(bào)

0/150
提交
取消

log4j顯示總共有8條數(shù)據(jù),回復(fù)每次卻只顯示第一條?

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

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

幫助反饋 APP下載

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

公眾號(hào)

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