課程
/后端開發(fā)
/Java
/初識(shí)Java微信公眾號(hào)開發(fā)
我用的spring做的,在服務(wù)器開發(fā)者模式中綁定的是驗(yàn)證token的 ?那么如果我要接受信息并回復(fù)這個(gè)時(shí)候我的url要怎么去做?
2016-11-30
源自:初識(shí)Java微信公眾號(hào)開發(fā) 5-4
正在回答
我沒有按照這種方式,而是選擇了定時(shí)器quartz的方式去處理的...不過還是需要說聲謝謝
首先:在web.xml中添加?
<listener>??????
????????<listener-class>??????
????????????org.springframework.web.context.request.RequestContextListener??
????????</listener-class>??????
</listener>?
然后在你相應(yīng)的bean中(注:這里的spring版本是3.0及以上)
@Autowired??
private??HttpServletRequest?request;?
舉報(bào)
Java微信公眾號(hào)開發(fā)的入門教程,掌握微信公眾號(hào)基本概念
3 回答回復(fù)后無反應(yīng)。
4 回答微信回復(fù)中文亂碼問題
2 回答關(guān)于回復(fù)消息之前,map轉(zhuǎn)換成xml的問題
3 回答自動(dòng)回復(fù)與自定義菜單動(dòng)能問題
4 回答關(guān)鍵字的問題,只輸入“1”,會(huì)有相應(yīng)回復(fù)。假如我輸入字符串包含‘1’比如“我是1”,會(huì)有自動(dòng)回復(fù)嗎?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-12-12
我沒有按照這種方式,而是選擇了定時(shí)器quartz的方式去處理的...不過還是需要說聲謝謝
2016-12-05
首先:在web.xml中添加?
<listener>??????
????????<listener-class>??????
????????????org.springframework.web.context.request.RequestContextListener??
????????</listener-class>??????
</listener>?
然后在你相應(yīng)的bean中(注:這里的spring版本是3.0及以上)
@Autowired??
private??HttpServletRequest?request;?