Commit c6ce0a2
authored
Fix deprecated apply call in SecurityConfig (#931)
* replace deprecated HttpSecurity.apply() call with HttpSecurity.with() as suggested in the deprecation message
https://docs.spring.io/spring-security/site/docs/6.5.x/api/org/springframework/security/config/annotation/AbstractConfiguredSecurityBuilder.html#apply(C)
* add note about Customizer.withDefaults()
'Customizer.withDefaults() enables a security feature using the defaults provided by Spring Security. This is a shortcut for the lambda expression it -> {}.'
https://docs.spring.io/spring-security/reference/6.5/migration-7/configuration.html#_use_the_lambda_dsl1 parent 6703e58 commit c6ce0a2
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
0 commit comments