Use webjars for static resources in sample apps

This commit is contained in:
Vedran Pavic
2016-04-08 19:38:14 +02:00
committed by Rob Winch
parent 4a1f132e07
commit 2b4a349b1a
89 changed files with 88 additions and 45198 deletions

View File

@@ -32,7 +32,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.formLogin().loginPage("/login").permitAll().and().authorizeRequests()
.antMatchers("/resources/**").permitAll().anyRequest().authenticated()
.antMatchers("/resources/**", "/webjars/**").permitAll().anyRequest().authenticated()
.and().logout().permitAll();
}
// end::config[]