ããªãä¹ ã ã®æè¡ã¨ã³ããªã éç¨ã¯ãå ãéããµã¼ãã¼ã使ã£ãã¨ãã¦ãéçºã¯è»½ãã»ãããããå½ããåã§ããã ã¨ããããã§ããããéçºããæ¹æ³ãæ¸ãã¦ã¿ããDIã³ã³ããã¯CDIãGuiceãSpringãªã©å¥½ããªãã®ã§ããããä»åã¯çãã軽ããã¨ããã£ã¦éçºä¸ã¯Guiceã使ããã¨ããå§ãããããæ³¨å ¥ã¯@Injectã使ããããéçºä¸ã¨éç¨ä¸ã§ã³ã¼ããå¤ããã£ã¦ã®ã¯å°ãªãã¯ãã ã ã¾ãã¯JAX-RS ã¾ããã¢ã¯ã·ã§ã³ãã¼ã¹ã®Webã¢ããªã¯JAX-RSã使ããã¨ããããåºæ¬ããµã¼ãã¬ããAPIã使ããã«éçºãããã¨ã«ã¤ãã¦ã¯ä»ã¾ã§ãæ¸ãã¦ããããµã¼ãã¬ããAPIã触ããªããã¨ã«ããéçºå¹çã¨ãã¹ãã®ããããã両ç«ã§ããã ãããªæãã @Path("/") public class Hoge { @GET @Path("add/{a}/{b}") public Response add(@Pa
{{#tags}}- {{label}}
{{/tags}}