Skip to content

Commit

Permalink
spring-projects#11754 - HttpSecurityDsl should support apply method
Browse files Browse the repository at this point in the history
- Polish javadoc in Kotlin DSL
  • Loading branch information
hanrw committed Sep 7, 2022
1 parent b5f1dd7 commit b15d13c
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ class HttpSecurityDsl(private val http: HttpSecurity, private val init: HttpSecu
* ```
* @Configuration
* @EnableWebSecurity
* class SecurityConfig : WebSecurityConfigurerAdapter() {
* class SecurityConfig {
*
* override fun configure(http: HttpSecurity) {
* http {
* apply(CustomSecurityConfigurer<HttpSecurity>())
* }
* }
* @Bean
* fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
* http {
* apply(CustomSecurityConfigurer<HttpSecurity>())
* }
* return http.build()
* }
* }
* ```
*
Expand Down

0 comments on commit b15d13c

Please sign in to comment.