Explicitly secure a specific pattern instead of ignoring all non-secured patterns
问题 I have an application where I only need to secure /admin/ pages. All of the other pages have no login, account or other features that require security. According to other questions and tutorials, I have currently implemented this with explicitly ignoring all paths that don't require security, e.g. web .ignoring() .antMatchers("/js/**"); web .ignoring() .antMatchers("/static/**"); web .ignoring() .antMatchers("/images/**"); web .ignoring() .antMatchers("/css/**"); web .ignoring() .antMatchers(