問題タブ [javax.ws.rs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
54 問題
0
投票する
1
に答える
454
参照
java - response.getStatus を呼び出すと応答が NULL になります。クライアントは Web サービスの内容をターゲットにしていませんか?
GET を期待する私の Web サービス リソース:
関連するクライアント:
私のテストでは、nullpointer を取得しましたがint responseCode = response.getStatus()
、webTarget
. POST 応答では正しく実行できるように見えますが、GET を期待している場合はそうではありません。
null 応答が返される理由はありますか?