SpringCloud 竊聽

2024-01-06 11:15 更新

Reactor Netty HttpClientHttpServer可以啟用竊聽功能。與將reactor.netty日志級別設(shè)置為DEBUGTRACE結(jié)合使用時(shí),將允許記錄信息,例如通過網(wǎng)絡(luò)發(fā)送和接收的標(biāo)頭和正文。 要啟用此功能,請分別為HttpServerHttpClient設(shè)置spring.cloud.gateway.httpserver.wiretap=true和/或spring.cloud.gateway.httpclient.wiretap=true。

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號