|
@@ -46,7 +46,7 @@ import org.springframework.security.web.SecurityFilterChain;
|
|
|
*
|
|
|
* @Bean
|
|
|
* public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
|
|
|
- * http.authorizeRequests().requestMatchers("/public/**").permitAll().anyRequest()
|
|
|
+ * http.authorizeHttpRequests().requestMatchers("/public/**").permitAll().anyRequest()
|
|
|
* .hasRole("USER").and()
|
|
|
* // Possibly more configuration ...
|
|
|
* .formLogin() // enable form based log in
|