2018年、Servlet 2.5形式の web.xml で動くSpring MVCに、Spring Securityを追加したときの記録です。Tomcatで起動を確認するなかで、設定を読み込む場所と、実行時のJARの組み合わせを別々に調べました。 servlet-context.xml と web.xml 最初はMVCの servlet-context.xml にSpring Securityの sec:http と認証マネージャーを置いていました。web.xml では ContextLoaderLis ...