Dropwizardについて書こうと思っていましたが、気分がかわりJersey2について書きたいと思います。 StackOverFlowや技術系ブログにJerseyとSpringSecurityを統合する記事はたくさん出てるんですが、バージョン違いの記事が多くて混乱したのでそのあたりについて書きます。 1. web.xmlの設定が、Jersey1系とJersey2系で大きく変わる ハマり度:梅 「web.xml上でServletContainerを記述する」との紹介が多いですが、Jersey2では動かないので注意。 Jersey2ではこう書きます。 <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath:/applicationContext.xml </param-val
![Jersey2×SpringSecurityのハマりポイント三選 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/cbc1f0f7d57c0fbd7dc87d81bc07542c36a83eff/height=288;version=1;width=512/https%3A%2F%2Fcdn.qiita.com%2Fassets%2Fqiita-fb-2887e7b4aad86fd8c25cea84846f2236.png)