File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
servlet/java-configuration/authentication/preauth/src/main/java/example Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 20
20
import org .springframework .context .annotation .Configuration ;
21
21
import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
22
22
import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
23
+ import org .springframework .security .config .web .PathPatternRequestMatcherBuilderFactoryBean ;
23
24
import org .springframework .security .core .userdetails .User ;
24
25
import org .springframework .security .core .userdetails .UserDetails ;
25
26
import org .springframework .security .core .userdetails .UserDetailsService ;
31
32
@ EnableWebSecurity
32
33
public class SecurityConfiguration {
33
34
35
+ @ Bean
36
+ PathPatternRequestMatcherBuilderFactoryBean requestMatcherBuilder () {
37
+ return new PathPatternRequestMatcherBuilderFactoryBean ();
38
+ }
39
+
34
40
@ Bean
35
41
public SecurityFilterChain securityFilterChain (HttpSecurity http , PathPatternRequestMatcher .Builder mvc )
36
42
throws Exception {
You can’t perform that action at this time.
0 commit comments