protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
- .antMatchers("/static/img/**").permitAll()
+ .antMatchers("/img/**").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.permitAll()
.and()
.logout()
- .permitAll();
+ .permitAll()
+ .and()
+ .httpBasic();
http.csrf().disable();
http.headers().frameOptions().disable();