1for internationalization :
2add
3 @Override
4 public void configure(WebSecurity web) throws Exception {
5 web
6 .ignoring()
7 .antMatchers("/resources/**", "/static/**", "/css/**", "/js/**", "/images/**");
8 }
9
10 and also for the login page an antMatchers with permitAll() :
11 @Override
12 protected void configure(HttpSecurity http) throws Exception {
13
14 http
15 .authorizeRequests()
16 .antMatchers("/login*")
17 .permitAll()