前回 blog1.mammb.com の続き。 RESTサービス追加します。 ファイル準備 パッケージ用のディレクトリ追加とファイル作成します。 mkdir -p src/main/java/example/rest touch src/main/java/example/rest/JaxRsActivator.java touch src/main/java/example/rest/MemberResourceService.java JaxRsActivator.java Application を継承したクラスを作成します。 package example.rest; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @ApplicationPath("/rest") public cl
![分速で始める JavaEE 7 〜 JPA + CDI + JAX-RS 〜 - A Memorandum](https://cdn-ak-scissors.b.st-hatena.com/image/square/26b72a3a134364fb679cb6cf2b94f8774cfd262d/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2FN%2FNaotsugu%2F20150213%2F20150213230909.png)