File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
servlet/java-configuration/max-sessions/src/main/java/example Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818
1919import org .springframework .context .annotation .Bean ;
2020import org .springframework .context .annotation .Configuration ;
21- import org .springframework .security .config .annotation .method .configuration .EnableGlobalMethodSecurity ;
21+ import org .springframework .security .config .annotation .method .configuration .EnableMethodSecurity ;
2222import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
2323import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
2424import org .springframework .security .core .userdetails .User ;
3131
3232@ Configuration
3333@ EnableWebSecurity
34- @ EnableGlobalMethodSecurity ( prePostEnabled = true )
34+ @ EnableMethodSecurity
3535public class SecurityConfiguration {
3636
3737 @ Bean
You can’t perform that action at this time.
0 commit comments