<div dir="ltr"><div>I had the same issue.<br>I missed the spring security initializer and so springSecurityFilterChain was not registered.<br></div>I added this class in my app, and then all security worked just fine<br><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:&quot;Courier New&quot;"><span style="color:rgb(0,0,128);font-weight:bold">public class </span>SecurityWebApplicationInitializer<br>        <span style="color:rgb(0,0,128);font-weight:bold">extends </span>AbstractSecurityWebApplicationInitializer {<br>}<br><br></pre>And by the way, no web.xml required at all if you use annotation config.<br></div>