LoginSignup
1
0

More than 5 years have passed since last update.

JAXRSのパスの指定について

Posted at

一番シンプルなJAX-RSのパス指定について

例えば、下の画像のようなURIを持つアプリケーションを作ったとき
image.png

sample→クラス名に付加した@Pathの値
add→メソッドに付加した@Pathの値
クエリx,y →@QueryParamでメソッドの引数にバインドされる

つまり、コンテキストルートからのパスを
実行したいクラス→実行したいメソッド
と対応するように指定すればよい

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0