/hello-security

Spring Security Hello World

Primary LanguageJava

Simply do

./mvnw spring-boot:run

And then hit the / endoint.

curl localhost:8080

will give a 401, and

curl --user user:pwd localhost:8080 && echo

will print out the username.