No Spring-Security logging with Spring-Boot and WebFlux
I cannot get Spring-Security to log anything in a simple Spring-Boot WebFlux application. I assume I must be doing something wrong because my searches have only turned up this unanswered SO question.
No Spring-Boot logging entries appear in terminal window after running ./gradlew bootRun
.
Detailed logging entries as if using MVC. I followed the same steps to reproduce as shown below, substituting "Web" for "Reactive Web," and it works as expected.
macOS 10.13.6 java version "1.8.0_181"
I tried Spring-Booot versions 2.0.4, 2.1.0.M2, and 2.1.0.SNAPSHOT.
https://github.com/kensiprell/webflux-spring-security-demo
-
Go to https://start.spring.io.
-
Choose Gradle, Kotlin or Java, and a Boot version.
-
Add 'Security' and 'Reactive Web' to the dependencies and generate the project.
-
Unarchive demo.zip and
cd demo/
. -
Edit
./src/main/resources/application.properties
and add a line that should increase the logging level:logging.level.root=DEBUG
orlogging.level.org.springframework.security=DEBUG
-
./gradlew bootRun
-
Open http://localhost:8080 in a browser.