Skip to content

Commit 27f4b0a

Browse files
Saving
1 parent 8554b0a commit 27f4b0a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ java {
1111
sourceCompatibility = '17'
1212
}
1313

14+
ext['spring-security.version'] = '6.2.0'
15+
1416
repositories {
15-
mavenLocal()
1617
mavenCentral()
1718
}
1819

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
spring-security.version=6.2.0-SNAPSHOT

src/main/java/com/example/springsecurityexamples/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class SecurityConfig {
1616
@Bean
1717
SecurityWebFilterChain appSecurity(ServerHttpSecurity http) {
1818
http
19+
.csrf(ServerHttpSecurity.CsrfSpec::disable)
1920
.authorizeExchange((authorize) -> authorize
2021
.anyExchange().authenticated()
2122
)

src/main/resources/application.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ spring:
33
security:
44
user:
55
password: password
6+
7+
logging.level:
8+
org.springframework.web: TRACE

0 commit comments

Comments
 (0)