Skip to content

Commit 2ad7a09

Browse files
committed
Merge pull request #35454 from JunJaBoy
* gh-35454: Polish "Improve formatting of Kotlin permitAll example" Improve formatting of Kotlin permitAll example Closes gh-35454
2 parents f5ff800 + d66563d commit 2ad7a09

File tree

1 file changed

+4
-3
lines changed
  • spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/actuator/endpoints/security/exposeall

1 file changed

+4
-3
lines changed

spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/actuator/endpoints/security/exposeall/MySecurityConfiguration.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,9 @@ class MySecurityConfiguration {
2727

2828
@Bean
2929
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
30-
http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests {
31-
requests -> requests.anyRequest().permitAll() }
30+
http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests { requests ->
31+
requests.anyRequest().permitAll()
32+
}
3233
return http.build()
3334
}
3435

0 commit comments

Comments
 (0)